Files
metasploit-gs/dev/msf3/ruby.nono
T

17 lines
410 B
Plaintext
Raw Normal View History

2005-07-16 16:06:36 +00:00
Things to *not* do in ruby that will break ruby threads. This list
isn't complete, but it's things I've noticed while working on stuff:
- select with no timeout
2005-07-26 17:05:00 +00:00
2005-07-16 16:06:36 +00:00
This will make a blocking select call that will block all other
threads.
2005-07-26 17:05:00 +00:00
Use Rex::ThreadSafe::select
2005-07-16 16:06:36 +00:00
- use sleep
2005-07-26 17:05:00 +00:00
2005-07-16 16:06:36 +00:00
This will block all threads.
2005-09-23 14:26:39 +00:00
Use Rex::ThreadSafe::sleep (we've now wrapped the global sleep to
call the rex sleep)