Re: fork not working?

Shugo Maeda <[email protected]> Wed, 12 Jan 2005 23:08:24 +0900
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi,

Colin Steele wrote:
> Errrr.... yuck is right.  I think I must not have had enough coffee when
> I was writing that one up.  Regardless of the poor writeup I did of the
> problem, it appears to be a known issue.  Google helped me find this: 
> http://i.loveruby.net/d/20040328.html
> 
> I tried the script on that page and sure enough, looks like the same
> results - the child SEGVs.  :(

He said "It was because the version of ruby was old" in that page.
The script works well on my machine:

from /tmp/log:

pid=3653: start
pid=3677: (child) fork OK
pid=3653: (parent) child=3677
pid=3653: waitpid=#<Process::Status: pid=3677,exited(0)>
pid=3653: program exit

Please tell me the version of ruby.
Mine is:

$ ruby -v
ruby 1.8.2 (2005-01-06) [i386-linux]

Shugo