forking and avoiding zombies!

andrea crotti andrea.crotti.0 at gmail.com
Tue Dec 11 19:02:57 EST 2012


2012/12/11 Dennis Lee Bieber <wlfraed at ix.netcom.com>:
> On Tue, 11 Dec 2012 10:34:23 -0300, peter <pjmakey2 at gmail.com> declaimed
> the following in gmane.comp.python.general:
>
>>
>> stderrfile = '%s/error.log' % os.getcwd()
>> stdoutfile = '%s/out.log' % os.getcwd()
>>
>         Ouch...
>
>         stdoutfile = os.path.join(os.getcwd(), "out.log")
>
> minimizes any OS specific quirks in path naming...
> --
>         Wulfraed                 Dennis Lee Bieber         AF6VN
>         wlfraed at ix.netcom.com    HTTP://wlfraed.home.netcom.com/
>
> --
> http://mail.python.org/mailman/listinfo/python-list


Good point yes, but in this case fork doesn't work on Windows anyway
so it's not really an issue..



More information about the Python-list mailing list