comparison src/sysdep.c @ 3105:852789920c11

(wait_for_termination): Don't use the BSD alternative for LINUX.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 May 1993 23:22:08 +0000
parents e94a593c3952
children a5b3a34ba1e4
comparison
equal deleted inserted replaced
3104:3c6fccdf8257 3105:852789920c11
312 int status; 312 int status;
313 313
314 status = SYS$FORCEX (&pid, 0, 0); 314 status = SYS$FORCEX (&pid, 0, 0);
315 break; 315 break;
316 #else /* not VMS */ 316 #else /* not VMS */
317 #if defined (BSD) || (defined (HPUX) && !defined (HPUX_5)) 317 #if (defined (BSD) && !defined (LINUX)) || (defined (HPUX) && !defined (HPUX_5))
318 /* Note that kill returns -1 even if the process is just a zombie now. 318 /* Note that kill returns -1 even if the process is just a zombie now.
319 But inevitably a SIGCHLD interrupt should be generated 319 But inevitably a SIGCHLD interrupt should be generated
320 and child_sig will do wait3 and make the process go away. */ 320 and child_sig will do wait3 and make the process go away. */
321 /* There is some indication that there is a bug involved with 321 /* There is some indication that there is a bug involved with
322 termination of subprocesses, perhaps involving a kernel bug too, 322 termination of subprocesses, perhaps involving a kernel bug too,
331 } 331 }
332 if (wait_debugging) 332 if (wait_debugging)
333 sleep (1); 333 sleep (1);
334 else 334 else
335 sigpause (SIGEMPTYMASK); 335 sigpause (SIGEMPTYMASK);
336 #else /* not BSD, and not HPUX version >= 6 */ 336 #else /* not BSD, not LINUX, and not HPUX version >= 6 */
337 #ifdef UNIPLUS 337 #ifdef UNIPLUS
338 if (0 > kill (pid, 0)) 338 if (0 > kill (pid, 0))
339 break; 339 break;
340 wait (0); 340 wait (0);
341 #else /* neither BSD nor UNIPLUS: random sysV */ 341 #else /* neither BSD nor UNIPLUS: random sysV */