2006-06-01 Michaël Cadilhac <michael.cadilhac@lrde.org>
authorKim F. Storm <storm@cua.dk>
Thu, 1 Jun 2006 14:08:25 +0000 (14:08 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 1 Jun 2006 14:08:25 +0000 (14:08 +0000)
commita5cfdda8adae935411ed4bf9a11999ccdb8b956a
tree96e3b352e557665b05013f6c8df1a69ae8954b4e
parent24a71bb14092f0f789d7412c278c45079f791477
2006-06-01  Michaël Cadilhac  <michael.cadilhac@lrde.org>

(deleted_pid_list): New variable to store the pids
of deleted processes.  Declare it only if SIGCHLD is defined.
(init_process): Initialize it.
(syms_of_process): Staticpro it.
(Fdelete_process): Add pid of the deleted process to it.  Check after
the addition and before the kill if the process is already stopped,
in which case it is deleted from the list and not killed.
(sigchld_handler): Define it only if SIGCHLD is.  Search the process
that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
Original idea by Stefan Monnier.
src/process.c