rapid7/metasploit-framework — pull request #782 by dalton (2012-09-11 16:56:43+00:00)
Title: Updating definintion of sleep to allow for 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.