os.system and subprocess odd behavior
Dave Angel
d at davea.name
Tue Dec 18 05:39:56 EST 2012
On 12/18/2012 05:27 AM, Hans Mulder wrote:
> On 18/12/12 06:10:43, photonymous at gmail.com wrote:
>> I hope I understand the question... but shouldn't you wait for the process to complete before exiting?
>>
>> Something like:
>>
>> pid = subprocess.Popen(...)
>> pid.wait()
>>
>> Otherwise, it'll exit before the background process is done.
> Why would that be a problem?
>
Because you don't want to bog the system down with a zombie task.
--
DaveA
More information about the Python-list
mailing list