comparison src/process.c @ 83031:1d2f73785d9d

Merged in changes from CVS HEAD Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-57 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-58 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-59 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-60 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-61 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-62 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-63 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-64 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-65 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-66 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-67 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-68 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-69 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-71
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 02 Feb 2004 19:19:08 +0000
parents c66ebcc29777 0341435e76ce
children 03a73693678e
comparison
equal deleted inserted replaced
83030:895e130cc8da 83031:1d2f73785d9d
6092 handler will be called again, resulting in an infinite loop. The 6092 handler will be called again, resulting in an infinite loop. The
6093 relevant portion of the documentation reads "SIGCLD signals will be 6093 relevant portion of the documentation reads "SIGCLD signals will be
6094 queued and the signal-catching function will be continually 6094 queued and the signal-catching function will be continually
6095 reentered until the queue is empty". Invoking signal() causes the 6095 reentered until the queue is empty". Invoking signal() causes the
6096 kernel to reexamine the SIGCLD queue. Fred Fish, UniSoft Systems 6096 kernel to reexamine the SIGCLD queue. Fred Fish, UniSoft Systems
6097 Inc. */ 6097 Inc.
6098
6099 ** Malloc WARNING: This should never call malloc either directly or
6100 indirectly; if it does, that is a bug */
6098 6101
6099 SIGTYPE 6102 SIGTYPE
6100 sigchld_handler (signo) 6103 sigchld_handler (signo)
6101 int signo; 6104 int signo;
6102 { 6105 {
6210 6213
6211 /* Report the status of the synchronous process. */ 6214 /* Report the status of the synchronous process. */
6212 if (WIFEXITED (w)) 6215 if (WIFEXITED (w))
6213 synch_process_retcode = WRETCODE (w); 6216 synch_process_retcode = WRETCODE (w);
6214 else if (WIFSIGNALED (w)) 6217 else if (WIFSIGNALED (w))
6215 { 6218 synch_process_termsig = WTERMSIG (w);
6216 int code = WTERMSIG (w);
6217 char *signame;
6218
6219 synchronize_system_messages_locale ();
6220 signame = strsignal (code);
6221
6222 if (signame == 0)
6223 signame = "unknown";
6224
6225 synch_process_death = signame;
6226 }
6227 6219
6228 /* Tell wait_reading_process_input that it needs to wake up and 6220 /* Tell wait_reading_process_input that it needs to wake up and
6229 look around. */ 6221 look around. */
6230 if (input_available_clear_time) 6222 if (input_available_clear_time)
6231 EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0); 6223 EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0);