Process.waitpid does not work with IO.popen4
--------------------------------------------

                 Key: JRUBY-5684
                 URL: http://jira.codehaus.org/browse/JRUBY-5684
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
            Reporter: Aman Gupta
            Assignee: Thomas E Enebo


Calling Process.wait on the pid returned from IO.popen4 always raises an ECHILD

{noformat}
jruby-1.6.0 :014 > pid, i,o,e = IO.popen4('ls'); i.close; Process.wait(pid)
Errno::ECHILD: No child processes - No child processes
{noformat}

Using the block format of IO.popen4 works however, and sets $? correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to