245 |
#else |
#else |
246 |
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) |
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T) |
247 |
#else |
#else |
248 |
#if defined (HAVE_TERMIOS_H) && defined (LINUX) |
#if defined (HAVE_TERMIOS_H) && defined (GNU_LINUX) |
249 |
#include <termios.h> |
#include <termios.h> |
250 |
#endif |
#endif |
251 |
#endif |
#endif |
476 |
break; |
break; |
477 |
wait (0); |
wait (0); |
478 |
#else /* neither BSD_SYSTEM nor UNIPLUS: random sysV */ |
#else /* neither BSD_SYSTEM nor UNIPLUS: random sysV */ |
479 |
#ifdef POSIX_SIGNALS /* would this work for LINUX as well? */ |
#ifdef POSIX_SIGNALS /* would this work for GNU/Linux as well? */ |
480 |
sigblock (sigmask (SIGCHLD)); |
sigblock (sigmask (SIGCHLD)); |
481 |
errno = 0; |
errno = 0; |
482 |
if (kill (pid, 0) == -1 && errno == ESRCH) |
if (kill (pid, 0) == -1 && errno == ESRCH) |