hammackj/rex — pull request #1 by dalton (2012-09-11 14:50:59+00:00)
Title: Updating sleep to allow nil arguments  

I was trying to get the metasploit msfrpc-client to work with siqekiq and it kept failing on startup when sidekiq called

sleep

Investigation revealed the Rex overwrites Kernel#sleep, but does not allow for the nil argument case (infinite sleep). I just added nil as the default argument in lib/rex.rb and lib/rex/sync/thread_safe#sleep.

Since lib/rex/sync/thread_safe#select already defaults the t param to nil, I believe this should work.