Possibly fix bug #13086 with losing track of subprocesses on MS-Windows.
commit7efa3fb3579fcb105ab84748945638daccdb4761
authorEli Zaretskii <eliz@gnu.org>
Fri, 21 Dec 2012 11:21:35 +0000 (21 13:21 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 21 Dec 2012 11:21:35 +0000 (21 13:21 +0200)
tree49ee3a0d9ee6d85f75657407367a7413d68f7d93
parentc1f02afadfc879f527350dc56d6ed4d2daa7e173
Possibly fix bug #13086 with losing track of subprocesses on MS-Windows.

 src/w32proc.c (new_child, delete_child, find_child_pid): For a
 subprocess, consider its slot being in use as long as its process
 handle (procinfo.hProcess) is not NULL.  This avoids reusing the
 slot when a new process is started immediately after killing
 another one, without waiting enough time for the first process to
 be reaped and resources allocated for it be orderly freed.
 Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.
src/ChangeLog
src/w32proc.c