• Kim F. Storm's avatar
    2006-06-01 Michaël Cadilhac <michael.cadilhac@lrde.org> · a5cfdda8
    Kim F. Storm authored
    (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.
    a5cfdda8
process.c 208 KB