summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-10-03 09:14:40 +0000
committerKim F. Storm <storm@cua.dk>2006-10-03 09:14:40 +0000
commit1eed3bdcee6f66d2d756824ea85fec9db735fa65 (patch)
tree2ac763988c7b126d3495ea160c5f901cb5d89948 /src
parent670992917f2ee196a667797e4c3806d89c0f6d61 (diff)
(list_processes_1): Run sentinels before removing dead
processes. Also remove `closed' network connections.
Diffstat (limited to 'src')
-rw-r--r--src/process.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 46bff2f94a3..ebe8ef56fff 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1314,6 +1314,7 @@ list_processes_1 (query_only)
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 @@ list_processes_1 (query_only)
}
}
- 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 @@ list_processes_1 (query_only)
insert_string ("\n");
}
}
+ if (exited)
+ status_notify (NULL);
return Qnil;
}