niv has quit [Read error: Connection reset by peer]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
grenierm has joined #ruby
_whitelogger has joined #ruby
dionysus69 has joined #ruby
user71 has joined #ruby
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
kerzhak has quit [Client Quit]
kerzhak has joined #ruby
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
grenierm has quit [Quit: Client closed]
grenierm has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 248 seconds]
rvalue- is now known as rvalue
marc_in_space has quit [Ping timeout: 268 seconds]
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
wbooze has quit [Quit: Leaving]
grenierm has quit [Ping timeout: 240 seconds]
<depesz>
hi. i have program that does sleep(), and I want the sleep() to end when I'll send USR1 signal. I can do Signal.trap(), and it is being processed, but after signal handler, it just goes back to sleep. how can I make it stop sleeping ?
<kjetilho>
use select to sleep instead? (non-Pythonista graybeard talking)
<depesz>
[].select ?
<depesz>
not sure i follow. care to point me to doc/example ?
<kjetilho>
select.select((), (), (), 3.14) will sleep for 3.14 seconds
<depesz>
select': wrong number of arguments (given 0, expected 1..4) (ArgumentError)
<kjetilho>
you did import select first?
<depesz>
cannot load such file -- select (LoadError)
<kjetilho>
not on Unix?
<depesz>
duckduckgo-ing ruby select shows just shows array thing.
<depesz>
well, on linux.
<depesz>
sorry, i can't really stand unix.
<depesz>
too used to gnu extensiosn.
<kjetilho>
whaaa - why did I think I was in #python?
<kjetilho>
sorry!
<depesz>
that explains the confusion :)
<kjetilho>
in Ruby it is IO.select
<depesz>
thanks.
<kjetilho>
yep, seems to work the same: IO.select([],[],[], 3.14)