aa_argv0 = argv0;
if (err_file)
aa_stderr = err_file;
-#if defined(linux)
+#if defined(linux) || defined(CSRG_BASED)
else
aa_stderr = stderr;
#endif
signal (SIGQUIT, signal_abort); /* quit, ctrl-d */
signal (SIGKILL, signal_abort); /* (kill -9, cannot be trapped) */
signal (SIGTERM, signal_abort); /* kill [-15], sfwr terminate */
+#ifdef SIGPWR
signal (SIGPWR, signal_abort); /* power failure imminent */
+#endif
#ifdef _AIX
signal (SIGXCPU, signal_abort); /* cpu time limit exceeded */
signal (SIGDANGER, signal_abort); /* imminent paging space crash */
signal (SIGKILL, flag_shutdown); /* kill -9, cannot be trapped */
signal (SIGALRM, flag_shutdown); /* called alarm() polling timer */
signal (SIGTERM, flag_shutdown); /* kill [-15], sfwr terminate */
+#ifdef SIGPWR
signal (SIGPWR, flag_shutdown); /* power failure imminent */
+#endif
signal (SIGUSR1, flag_shutdown); /* kill -30, "pings" OE */
#ifdef _AIX
signal (SIGXCPU, flag_shutdown); /* cpu time limit exceeded */
signal (SIGKILL, signal_shutdown); /* this cannot be trapped */
signal (SIGALRM, signal_shutdown);
signal (SIGTERM, signal_shutdown);
+#ifdef SIGPWR
signal (SIGPWR, signal_shutdown);
+#endif
#ifdef _AIX
signal (SIGXCPU, signal_shutdown);
signal (SIGDANGER, signal_shutdown);
signal (SIGQUIT, kill_delete);
signal (SIGTRAP, kill_delete);
signal (SIGTERM, kill_delete);
+#ifdef SIGPWR
signal (SIGPWR, kill_delete);
+#endif
#ifdef _AIX
signal (SIGXCPU, kill_delete); /* cpu time limit exceeded */
signal (SIGDANGER, kill_delete); /* imminent paging space