subprocess -- broken pipe error

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Mon Jul 2 16:03:23 EDT 2007


7stud wrote:

> Why doesn't the following program write to the file?
> [...]
> It just hangs, and then when I hit Ctrl+C and look in the file,
> the data isn't in there.

I suppose your running child process isn't closed cleanly if you
terminate the parent process. Also, the pipe may be unbuffered by
default; file access isn't.

Regards,


Björn

-- 
BOFH excuse #384:

it's an ID-10-T error




More information about the Python-list mailing list