Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Trapping signal when sleep #303

Open
grzlus opened this issue Apr 24, 2013 · 0 comments
Open

Trapping signal when sleep #303

grzlus opened this issue Apr 24, 2013 · 0 comments

Comments

@grzlus
Copy link

grzlus commented Apr 24, 2013

I found a problem, when try trap signal when process sleeps. This code works:

Signal.trap("HUP") { puts "Trapped" }
while(1) do
    # nothing, just looping
end

But when I try to sleep:

Signal.trap("HUP") { puts "Trapped with sleep" }
sleep 1234

I've got:

ERROR 6003 ,  (Break)
topaz 1> exit

After send signal to process. I tested this code on 1.9.3 (MRI) and it works, but on MagLev (I work with 1.1 version, but tested also 1.2a3) process terminates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant