This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jamesh
Recipients
Date 2007-03-20.06:32:28
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
#2 was an old misunderstanding by me about file.read() vs. os.read() w.r.t pipes, so is not needed.

As for returning the status code vs the pid, it looks like spawn() is designed to return only when it can't read/write to the subprocess.  You could return the pid at this point, but the process has most likely finished running at this point so the only thing you'd be likely to do is call waitpid() on it (and it is necessary to call waitpid() for the child process to be cleaned up properly).

That's why I suggested that pty.spawn() get the child status itself.
History
Date User Action Args
2007-08-23 16:08:11adminlinkissue967161 messages
2007-08-23 16:08:11admincreate