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 -- http://mail.python.org/mailman/listinfo/python-list