diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 16227ffb5b3..5ee921df4cb 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -314,7 +314,7 @@ wait_for_termination (pid) | |||
| 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 (LINUX)) || (defined (HPUX) && !defined (HPUX_5)) | 317 | #if defined (BSD) || (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. */ |
| @@ -333,12 +333,12 @@ wait_for_termination (pid) | |||
| 333 | sleep (1); | 333 | sleep (1); |
| 334 | else | 334 | else |
| 335 | sigpause (SIGEMPTYMASK); | 335 | sigpause (SIGEMPTYMASK); |
| 336 | #else /* not BSD, not LINUX, and not HPUX version >= 6 */ | 336 | #else /* not BSD, and not HPUX version >= 6 */ |
| 337 | #if defined (UNIPLUS) || defined (LINUX) | 337 | #if defined (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 nor LINUX: random sysV */ | 341 | #else /* neither BSD nor UNIPLUS: random sysV */ |
| 342 | #ifdef POSIX_SIGNALS /* would this work for LINUX as well? */ | 342 | #ifdef POSIX_SIGNALS /* would this work for LINUX as well? */ |
| 343 | sigblock (sigmask (SIGCHLD)); | 343 | sigblock (sigmask (SIGCHLD)); |
| 344 | if (0 > kill (pid, 0)) | 344 | if (0 > kill (pid, 0)) |