comparison src/process.c @ 90614:8dd8c8286063

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 460-475) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 145-152) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-118
author Miles Bader <miles@gnu.org>
date Sun, 15 Oct 2006 02:54:13 +0000
parents a1a25ac6c88a ff880e40efba
children dbe3f29e61d6
comparison
equal deleted inserted replaced
90613:7a2fdfcc7f71 90614:8dd8c8286063
1311 register Lisp_Object tail, tem; 1311 register Lisp_Object tail, tem;
1312 Lisp_Object proc, minspace, tem1; 1312 Lisp_Object proc, minspace, tem1;
1313 register struct Lisp_Process *p; 1313 register struct Lisp_Process *p;
1314 char tembuf[300]; 1314 char tembuf[300];
1315 int w_proc, w_buffer, w_tty; 1315 int w_proc, w_buffer, w_tty;
1316 int exited = 0;
1316 Lisp_Object i_status, i_buffer, i_tty, i_command; 1317 Lisp_Object i_status, i_buffer, i_tty, i_command;
1317 1318
1318 w_proc = 4; /* Proc */ 1319 w_proc = 4; /* Proc */
1319 w_buffer = 6; /* Buffer */ 1320 w_buffer = 6; /* Buffer */
1320 w_tty = 0; /* Omit if no ttys */ 1321 w_tty = 0; /* Omit if no ttys */
1437 sprintf (tembuf, " %d", (int) XFASTINT (tem)); 1438 sprintf (tembuf, " %d", (int) XFASTINT (tem));
1438 write_string (tembuf, -1); 1439 write_string (tembuf, -1);
1439 } 1440 }
1440 } 1441 }
1441 1442
1442 if (EQ (symbol, Qsignal) || EQ (symbol, Qexit)) 1443 if (EQ (symbol, Qsignal) || EQ (symbol, Qexit) || EQ (symbol, Qclosed))
1443 remove_process (proc); 1444 exited++;
1444 1445
1445 Findent_to (i_buffer, minspace); 1446 Findent_to (i_buffer, minspace);
1446 if (NILP (p->buffer)) 1447 if (NILP (p->buffer))
1447 insert_string ("(none)"); 1448 insert_string ("(none)");
1448 else if (NILP (XBUFFER (p->buffer)->name)) 1449 else if (NILP (XBUFFER (p->buffer)->name))
1502 insert_string (" "); 1503 insert_string (" ");
1503 } 1504 }
1504 insert_string ("\n"); 1505 insert_string ("\n");
1505 } 1506 }
1506 } 1507 }
1508 if (exited)
1509 status_notify (NULL);
1507 return Qnil; 1510 return Qnil;
1508 } 1511 }
1509 1512
1510 DEFUN ("list-processes", Flist_processes, Slist_processes, 0, 1, "P", 1513 DEFUN ("list-processes", Flist_processes, Slist_processes, 0, 1, "P",
1511 doc: /* Display a list of all processes. 1514 doc: /* Display a list of all processes.