Closing pipes

Jp Calderone exarkun at intarweb.us
Sun Mar 16 13:24:31 EST 2003


On Sun, Mar 16, 2003 at 10:37:03AM +0000, Tom Chance wrote:
> Donn Cave wrote:
> 
> > [snip]
> > 
> > You would kill the process with the kill() function (posix or os.kill())
> > It sends your choice of signal to the process;  you might use SIGTERM.
> 
> But to use the kill() function I need to know the process ID of the pipe,
> and afaik popen() doesn't return that, and neither does fork(). How can I
> get the pid?
> 

  Fork surely does.

  Jp





More information about the Python-list mailing list