From df7734b220de9c61575677adbc1f431ef6703d84 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Mon, 22 Mar 2010 12:51:59 -0700 Subject: Remove dead code dealing with POSIX_SIGNALS. * atimer.c (set_alarm): Remove dead code, all USG systems define POSIX_SIGNALS. * data.c (arith_error): Likewise. * keyboard.c (input_available_signal, handle_user_signal) (interrupt_signal): Likewise. * process.c (sigchld_handler): Likewise. (create_process): Remove if 0 code. Remove HPUX conditional when !defined (POSIX_SIGNALS), it cannot be true. * syssignal.h: Remove USG5_4 and USG conditionals when !POSIX_SIGNALS, they cannot be true. --- src/data.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/data.c') diff --git a/src/data.c b/src/data.c index e405ca6af9e..bdba3a9bb36 100644 --- a/src/data.c +++ b/src/data.c @@ -3291,11 +3291,6 @@ SIGTYPE arith_error (signo) int signo; { -#if defined(USG) && !defined(POSIX_SIGNALS) - /* USG systems forget handlers when they are used; - must reestablish each time */ - signal (signo, arith_error); -#endif /* USG */ sigsetmask (SIGEMPTYMASK); SIGNAL_THREAD_CHECK (signo); -- cgit v1.2.1