comparison src/process.c @ 114:8619ce7e4c50 r20-1b9

Import from CVS: tag r20-1b9
author cvs
date Mon, 13 Aug 2007 09:21:54 +0200
parents 360340f9fd5f
children 9f59509498e1
comparison
equal deleted inserted replaced
113:2ec2fe4a4c89 114:8619ce7e4c50
2201 reap_exited_processes (void) 2201 reap_exited_processes (void)
2202 { 2202 {
2203 int i; 2203 int i;
2204 struct Lisp_Process *p; 2204 struct Lisp_Process *p;
2205 2205
2206 if (exited_processes_index <= 0)
2207 {
2208 return;
2209 }
2210
2206 #ifdef EMACS_BLOCK_SIGNAL 2211 #ifdef EMACS_BLOCK_SIGNAL
2207 EMACS_BLOCK_SIGNAL (SIGCHLD); 2212 EMACS_BLOCK_SIGNAL (SIGCHLD);
2208 #endif 2213 #endif
2209 for (i = 0; i < exited_processes_index; i++) 2214 for (i = 0; i < exited_processes_index; i++)
2210 { 2215 {
2283 race conditions with the SIGCHLD_HAPPENED flag). */ 2288 race conditions with the SIGCHLD_HAPPENED flag). */
2284 2289
2285 static void 2290 static void
2286 record_exited_processes (int block_sigchld) 2291 record_exited_processes (int block_sigchld)
2287 { 2292 {
2293 if (!sigchld_happened)
2294 {
2295 return;
2296 }
2297
2288 #ifdef EMACS_BLOCK_SIGNAL 2298 #ifdef EMACS_BLOCK_SIGNAL
2289 if (block_sigchld) 2299 if (block_sigchld)
2290 EMACS_BLOCK_SIGNAL (SIGCHLD); 2300 EMACS_BLOCK_SIGNAL (SIGCHLD);
2291 #endif 2301 #endif
2292 2302