aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-05-03 21:00:10 -0700
committerDan Nicolaescu2010-05-03 21:00:10 -0700
commitef03a4e61efa0003b1b6be961b58297ccfddc664 (patch)
tree9a644546e94468429dfac802c3f885cdfa886d08 /src/sysdep.c
parentede4834a2f3f657ff79a730b52605ad8d3ef533e (diff)
downloademacs-ef03a4e61efa0003b1b6be961b58297ccfddc664.tar.gz
emacs-ef03a4e61efa0003b1b6be961b58297ccfddc664.zip
Remove POSIX_SIGNALS.
* s/usg5-4.h (POSIX_SIGNALS): * s/netbsd.h (POSIX_SIGNALS): * s/msdos.h (POSIX_SIGNALS): * s/ms-w32.h (POSIX_SIGNALS): * s/hpux11.h (POSIX_SIGNALS): * s/gnu.h (POSIX_SIGNALS): * s/gnu-linux.h (POSIX_SIGNALS): * s/freebsd.h (POSIX_SIGNALS): * s/darwin.h (POSIX_SIGNALS): * s/cygwin.h (POSIX_SIGNALS): * s/aix4-2.h (POSIX_SIGNALS): Remove definition. * s/unixware.h: * s/sol2-6.h: Remove comments on POSIX_SIGNALS. * process.c (create_process): * syssignal.h: * sysdep.c (wait_for_termination, init_signals): * process.c (create_process): * msdos.c: POSIX_SIGNALS is always defined on all platforms, remove all code that assumes the contrary.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 7a9872e13c4..38492c1bb00 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -419,7 +419,6 @@ wait_for_termination (pid)
419 else 419 else
420 sigpause (SIGEMPTYMASK); 420 sigpause (SIGEMPTYMASK);
421#else /* not BSD_SYSTEM, and not HPUX version >= 6 */ 421#else /* not BSD_SYSTEM, and not HPUX version >= 6 */
422#ifdef POSIX_SIGNALS /* would this work for GNU/Linux as well? */
423#ifdef WINDOWSNT 422#ifdef WINDOWSNT
424 wait (0); 423 wait (0);
425 break; 424 break;
@@ -434,24 +433,6 @@ wait_for_termination (pid)
434 433
435 sigsuspend (&empty_mask); 434 sigsuspend (&empty_mask);
436#endif /* not WINDOWSNT */ 435#endif /* not WINDOWSNT */
437#else /* not POSIX_SIGNALS */
438#ifdef HAVE_SYSV_SIGPAUSE
439 sighold (SIGCHLD);
440 if (0 > kill (pid, 0))
441 {
442 sigrelse (SIGCHLD);
443 break;
444 }
445 sigpause (SIGCHLD);
446#else /* not HAVE_SYSV_SIGPAUSE */
447 if (0 > kill (pid, 0))
448 break;
449 /* Using sleep instead of pause avoids timing error.
450 If the inferior dies just before the sleep,
451 we lose just one second. */
452 sleep (1);
453#endif /* not HAVE_SYSV_SIGPAUSE */
454#endif /* not POSIX_SIGNALS */
455#endif /* not BSD_SYSTEM, and not HPUX version >= 6 */ 436#endif /* not BSD_SYSTEM, and not HPUX version >= 6 */
456#else /* not subprocesses */ 437#else /* not subprocesses */
457 break; 438 break;
@@ -2090,8 +2071,6 @@ read_input_waiting ()
2090/* POSIX signals support - DJB */ 2071/* POSIX signals support - DJB */
2091/* Anyone with POSIX signals should have ANSI C declarations */ 2072/* Anyone with POSIX signals should have ANSI C declarations */
2092 2073
2093#ifdef POSIX_SIGNALS
2094
2095sigset_t empty_mask, full_mask; 2074sigset_t empty_mask, full_mask;
2096 2075
2097#ifndef WINDOWSNT 2076#ifndef WINDOWSNT
@@ -2168,7 +2147,6 @@ sys_sigsetmask (sigset_t new_mask)
2168 return (old_mask); 2147 return (old_mask);
2169} 2148}
2170 2149
2171#endif /* POSIX_SIGNALS */
2172 2150
2173#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST 2151#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
2174static char *my_sys_siglist[NSIG]; 2152static char *my_sys_siglist[NSIG];
@@ -2181,10 +2159,8 @@ static char *my_sys_siglist[NSIG];
2181void 2159void
2182init_signals () 2160init_signals ()
2183{ 2161{
2184#ifdef POSIX_SIGNALS
2185 sigemptyset (&empty_mask); 2162 sigemptyset (&empty_mask);
2186 sigfillset (&full_mask); 2163 sigfillset (&full_mask);
2187#endif
2188 2164
2189#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST 2165#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
2190 if (! initialized) 2166 if (! initialized)