external process not terminating
larry.martell at gmail.com
Wed Apr 12 17:46:32 EDT 2017
On Wed, Apr 12, 2017 at 10:51 AM, Dennis Lee Bieber
<wlfraed at ix.netcom.com> wrote:
> On Wed, 12 Apr 2017 09:51:12 -0400, Larry Martell <larry.martell at gmail.com>
> declaimed the following:
>>Anyone know how I can get the external process to terminate when done?
> It has... You just haven't cleaned up after it...
> This occurs for child processes, where the entry is still needed to allow
> the parent process to read its child's exit status: once the exit status is
> read via the wait system call, the zombie's entry is removed from the
> process table and it is said to be "reaped".
Thanks. I knew that but I had lost the forest for the trees. I added a
call to os.waitpid() and now all is well.
More information about the Python-list