* callproc.c: Fix race that killed background processes.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Aug 2013 21:27:30 +0000 (14:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Aug 2013 21:27:30 +0000 (14:27 -0700)
commit4a88129ae4332cbf3833c00f79100610ca2e576d
tree3cb80a8ec800bd34dd16b6944f87c0325f3ec833
parent6ee6031083c97309e7c10e17a25f466933e46656
* callproc.c: Fix race that killed background processes.

(call_process): New arg TEMPFILE_INDEX.  Callers changed.
Record deleted process-id in critical section, not afterwards.
Don't mistakenly kill process created by a call-process invocation
that discards output and does not wait.

Fixes: debbugs:15144
src/ChangeLog
src/callproc.c