Possibly fix bug #13086 with losing track of subprocesses on MS-Windows.
commitd2b9c238d5eb58b754a42c03d29e47a5de86f1de
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)
tree3973be395a51cff02b2c855da36aa94a93979144
parent3f76e2585983349f7cd0a62ca6cd7b3ed9553e57
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