Mercurial > emacs
diff src/process.c @ 73225:ff880e40efba
(list_processes_1): Run sentinels before removing dead
processes. Also remove `closed' network connections.
| author | Kim F. Storm <storm@cua.dk> |
|---|---|
| date | Tue, 03 Oct 2006 09:14:40 +0000 |
| parents | 5f2a73453aa3 |
| children | 182d429ba6f9 2d56e13fd23d 8dd8c8286063 |
line wrap: on
line diff
--- a/src/process.c Tue Oct 03 04:58:52 2006 +0000 +++ b/src/process.c Tue Oct 03 09:14:40 2006 +0000 @@ -1314,6 +1314,7 @@ register struct Lisp_Process *p; char tembuf[300]; int w_proc, w_buffer, w_tty; + int exited = 0; Lisp_Object i_status, i_buffer, i_tty, i_command; w_proc = 4; /* Proc */ @@ -1440,8 +1441,8 @@ } } - if (EQ (symbol, Qsignal) || EQ (symbol, Qexit)) - remove_process (proc); + if (EQ (symbol, Qsignal) || EQ (symbol, Qexit) || EQ (symbol, Qclosed)) + exited++; Findent_to (i_buffer, minspace); if (NILP (p->buffer)) @@ -1505,6 +1506,8 @@ insert_string ("\n"); } } + if (exited) + status_notify (NULL); return Qnil; }
