noreply / rubyforge.org wrote:
> Bugs item #1208, was opened at 15-12-2004 11:05
> You can respond by visiting: 
> http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1208&group_id=426
> 
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: gabriele renzi (riffraff)
> Assigned to: Nobody (None)
> Summary: webrick test_client_server does not pass
> 
> Initial Comment:
>   1) Error:
> test_client_server(Test_Webrick):
> TypeError: wrong argument type nil (expected Fixnum)
>     ./xmlrpc/webrick_testing.rb:31:in `kill'
>     ./xmlrpc/webrick_testing.rb:31:in `stop_server'
>     ./xmlrpc/test_webrick_server.rb:54:in `test_client_server'
>     ./xmlrpc/test_webrick_server.rb:49:in `each'
>     ./xmlrpc/test_webrick_server.rb:49:in `test_client_server'

This is due to method fork. I expect that when a block is given to fork, 
it will only return once, but in reallity it seems that it returns 
twice, even if a block is given:

   ruby -e 'p fork do "" end'

outputs:

   4534 (the pid)
   nil

ah, I was hit by a precedence error, this should work:

   ruby -e 'p fork { "" }'

outputs:

   4534

This should not return anything else than a Fixnum.

Regards,

   Michael