os.fork() different in cgi-script?
Andreas Kuntzagk
andreas.kuntzagk at mdc-berlin.de
Wed Jul 2 11:11:39 EDT 2003
On Wed, 02 Jul 2003 09:50:03 +0000, Michael Coleman wrote:
> Probably because stdout is being buffered here. The pid got written in
> the buffer (but not yet actually printed), then the process was forked,
> then the buffer got flushed (written out) by each child.
>
> One solution would be to make sure everything is flushed before you
> fork.
Thanx, that's it. Is it possible/advisable to make stdout unbuffered?
Andreas
More information about the Python-list
mailing list