Fix a recently-introduced delete-process race condition.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Dec 2012 07:31:58 +0000 (23:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Dec 2012 07:31:58 +0000 (23:31 -0800)
commit35fb8050457a0edc6a09f38fb1dd84a9c7732352
tree563dbd821a3efc83e6ad71c7f6a0dc21f26c8c5b
parent565212e5983cdcc478ed34bcdbd63f154e5e418f
Fix a recently-introduced delete-process race condition.

* callproc.c, process.h (record_kill_process):
New function, containing part of the old call_process_kill.
(call_process_kill): Use it.
This does not change call_process_kill's behavior.
* process.c (Fdelete_process): Use record_kill_process to fix a
race condition that could cause Emacs to lose track of a child.
src/ChangeLog
src/callproc.c
src/process.c
src/process.h