# define MUTEX_T st_mutex_t
#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
typedef void (*ts_allocate_ctor)(void *);
typedef void (*ts_allocate_dtor)(void *);
unistd.h \
sys/types.h \
sys/time.h \
-signal.h \
unix.h \
cpuid.h \
dlfcn.h)
#include "zend_operators.h"
#include "zend_multiply.h"
#include "zend_bitset.h"
+#include <signal.h>
-#ifdef HAVE_SIGNAL_H
-# include <signal.h>
-#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "zend.h"
#include "zend_globals.h"
-
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#ifdef ZEND_SIGNALS
-# ifdef HAVE_SIGNAL_H
-# include <signal.h>
-# endif
+#include <signal.h>
#ifndef NSIG
#define NSIG 65
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
-#if HAVE_SIGNAL_H
+
#include <signal.h>
-#endif
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if PHP_SIGCHILD
-#if HAVE_SIGNAL_H
#include <signal.h>
#endif
-#endif
#include "php_syslog.h"
#include "php_mail.h"
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
-#if HAVE_SIGNAL_H
#include <signal.h>
-#endif
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if HAVE_SIGNAL_H
+
#include <signal.h>
-#endif
+
#if HAVE_SETLOCALE
#include <locale.h>
#endif
# include <unistd.h>
#endif
-#if HAVE_SIGNAL_H
-# include <signal.h>
-#endif
+#include <signal.h>
#if HAVE_SETLOCALE
# include <locale.h>
char *decoded_query_string;
int skip_getopt = 0;
-#ifdef HAVE_SIGNAL_H
#if defined(SIGPIPE) && defined(SIG_IGN)
signal(SIGPIPE, SIG_IGN); /* ignore SIGPIPE in standalone mode so
that sockets created via fsockopen()
does that for us! thies@thieso.net
20000419 */
#endif
-#endif
#ifdef ZTS
php_tsrm_startup();
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if HAVE_SIGNAL_H
+
#include <signal.h>
-#endif
+
#if HAVE_SETLOCALE
#include <locale.h>
#endif
#include "win32/php_registry.h"
#endif
-#if HAVE_SIGNAL_H
-#include <signal.h>
-#endif
-
#ifdef __riscos__
#include <unixlib/local.h>
#endif
}
#endif
-#ifdef HAVE_SIGNAL_H
#if defined(SIGPIPE) && defined(SIG_IGN)
signal(SIGPIPE, SIG_IGN); /* ignore SIGPIPE in standalone mode so
that sockets created via fsockopen()
does that for us! thies@thieso.net
20000419 */
#endif
-#endif
-
#ifdef ZTS
php_tsrm_startup();
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if HAVE_SIGNAL_H
#include <signal.h>
-#endif
#if HAVE_SETLOCALE
#include <locale.h>
#endif
PHP_VERSION, buf, server_bind_address, document_root);
}
-#if defined(HAVE_SIGNAL_H) && defined(SIGINT)
+#if defined(SIGINT)
signal(SIGINT, php_cli_server_sigint_handler);
zend_signal_init();
#endif
{
zend_llist global_vars;
-#ifdef HAVE_SIGNAL_H
#if defined(SIGPIPE) && defined(SIG_IGN)
signal(SIGPIPE, SIG_IGN); /* ignore SIGPIPE in standalone mode so
that sockets created via fsockopen()
does that for us! thies@thieso.net
20000419 */
#endif
-#endif
#ifdef ZTS
php_tsrm_startup();
# include <unistd.h>
#endif
-#if HAVE_SIGNAL_H
-# include <signal.h>
-#endif
+#include <signal.h>
#if HAVE_SETLOCALE
# include <locale.h>
zend_bool old_rc_debug;
#endif
-#ifdef HAVE_SIGNAL_H
#if defined(SIGPIPE) && defined(SIG_IGN)
signal(SIGPIPE, SIG_IGN); /* ignore SIGPIPE in standalone mode so
that sockets created via fsockopen()
does that for us! thies@thieso.net
20000419 */
#endif
-#endif
#ifdef ZTS
php_tsrm_startup();
#endif
-#if HAVE_SIGNAL_H
-
#include <signal.h>
-
-#endif
-
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
int slow_script_msec = 0;
char time_buf[40];
-#ifdef HAVE_SIGNAL_H
#if defined(SIGPIPE) && defined(SIG_IGN)
signal(SIGPIPE, SIG_IGN);
#endif
-#endif
#ifdef ZTS
php_tsrm_startup();
#include "zend_ini_scanner.h"
#include "zend_stream.h"
#include "zend_signal.h"
-#if !defined(_WIN32) && !defined(ZEND_SIGNALS) && defined(HAVE_SIGNAL_H)
+#if !defined(_WIN32) && !defined(ZEND_SIGNALS)
# include <signal.h>
#elif defined(PHP_WIN32)
# include "win32/signal.h"