[ruby-core:62490] Re: [ruby-trunk - Bug #9751] [Open] Process.wait does not work correctly in a thread

From: Eric Wong <normalperson@...>
Date: 2014-05-10 01:20:26 UTC
List: ruby-core #62490
sam.saffron@gmail.com wrote:
> def test
>   if pid = fork

<snip>

>   else
>     sleep 3
>     puts "exiting child"
>     exit 0

A workaround is to use exit!(0) in the child.
Normal "exit" may be buggy, looking into it.

>   end
> end

In This Thread

Prev Next