diff --git a/src/configure.in b/src/configure.in index 5423393d26db8bc0bbf06774a394e02717ba7856..8bbde47d8e22337b574e05818b5d6d87e186b05f 100644 --- a/src/configure.in +++ b/src/configure.in @@ -4527,7 +4527,6 @@ AC_CHECK_FUNCS( \ ptrace \ setrlimit \ setresuid \ - signal \ sigaction \ sigvec \ strcasecmp \ diff --git a/src/main.c b/src/main.c index 5dae998f2826837b94586485b45a1fc2eb168439..e1ce19ed78ee6d11cabadc86e79311ca0e0df7ed 100644 --- a/src/main.c +++ b/src/main.c @@ -297,7 +297,6 @@ int main(int argc, char **argv) char *p; #ifdef PIKE_EXTRA_DEBUG -#ifdef HAVE_SIGNAL if (sizeof(void *) == 8) { /* 64-bit Solaris 10 in Xenofarm fails with SIGPIPE. * Force a core dump. @@ -305,7 +304,6 @@ int main(int argc, char **argv) signal(SIGPIPE, abort); } #endif -#endif #ifdef HAVE_MALLOPT TRACE((stderr, "Init malloc...\n")); diff --git a/src/modules/HTTPLoop/accept_and_parse.h b/src/modules/HTTPLoop/accept_and_parse.h index 62ff69cace250146de9cad10d842212fdff07662..39f817c0f469ff4eccd58c732be87f9cde1611af 100644 --- a/src/modules/HTTPLoop/accept_and_parse.h +++ b/src/modules/HTTPLoop/accept_and_parse.h @@ -8,9 +8,7 @@ #define CACHE_HTABLE_SIZE 40951 #if !defined(__NT__) && !defined(__WIN32__) -#ifdef HAVE_SIGNAL -# define HAVE_TIMEOUTS -#endif +#define HAVE_TIMEOUTS #endif struct res diff --git a/src/modules/HTTPLoop/configure.in b/src/modules/HTTPLoop/configure.in index 29c0c1a586557738e70baa669c3509255804b8ed..7340a5f34567f799a27c557655a1b919923dda9d 100644 --- a/src/modules/HTTPLoop/configure.in +++ b/src/modules/HTTPLoop/configure.in @@ -18,7 +18,7 @@ if test "$ac_cv_header_winsock2_h" = "yes"; then :; else AC_CHECK_HEADERS(winsock.h) fi -AC_CHECK_FUNCS(poll gmtime_r gmtime sendfile signal inet_ntoa inet_ntop) +AC_CHECK_FUNCS(poll gmtime_r gmtime sendfile inet_ntoa inet_ntop) AC_SUBST(RANLIB) diff --git a/src/post_modules/GTK1/configure.in b/src/post_modules/GTK1/configure.in index 21e0d5e8259842310b6232c781be6d55ccebf7c0..2d55db167f5abdedea35a515976115eb06fed55d 100644 --- a/src/post_modules/GTK1/configure.in +++ b/src/post_modules/GTK1/configure.in @@ -274,7 +274,7 @@ AC_HEADER_STDC AC_CHECK_HEADERS( signal.h netinet/in.h arpa/inet.h sys/types.h sys/stat.h \ fcntl.h) -AC_CHECK_FUNCS( gethrtime signal sigaction ) +AC_CHECK_FUNCS( gethrtime sigaction ) if test "x$with_GTK" = "xyes" ; then diff --git a/src/post_modules/GTK2/configure.in b/src/post_modules/GTK2/configure.in index 7818cff5ffe320d770b0e97aef57cda247712d00..218fe520be234b122c1a7b65c9befd05167b3642 100644 --- a/src/post_modules/GTK2/configure.in +++ b/src/post_modules/GTK2/configure.in @@ -19,7 +19,7 @@ AC_HEADER_STDC # Must be before AC_CHECK_FUNCS for PIKE_FUNCS_NEED_DECLS to work. AC_CHECK_HEADERS( signal.h netinet/in.h arpa/inet.h sys/types.h sys/stat.h fcntl.h ) -AC_CHECK_FUNCS( gethrtime signal sigaction ) +AC_CHECK_FUNCS( gethrtime sigaction ) AC_PATH_PROG(PKG_CONFIG,${ac_tool_prefix}pkg-config,no) diff --git a/src/signal_handler.c b/src/signal_handler.c index b65d31cbcf1221db421ec8f4f56e47c7e1246aff..b7fc5020070d12afe6f10a8e80f8ef197f079b31 100644 --- a/src/signal_handler.c +++ b/src/signal_handler.c @@ -3881,7 +3881,6 @@ void f_create_process(INT32 args) { int i; /* Restore the signals to the defaults. */ -#ifdef HAVE_SIGNAL #ifdef _sys_nsig for(i=0; i<_sys_nsig; i++) signal(i, SIG_DFL); @@ -3889,7 +3888,6 @@ void f_create_process(INT32 args) for(i=0; i<NSIG; i++) signal(i, SIG_DFL); #endif /* _sys_nsig */ -#endif /* HAVE_SIGNAL */ } if(mchroot)