static bool fatal_signals_initialized = false;
if (!fatal_signals_initialized)
{
+#if HAVE_SIGACTION
size_t i;
for (i = 0; i < num_fatal_signals; i++)
&& action.sa_handler == SIG_IGN)
fatal_signals[i] = -1;
}
+#endif
fatal_signals_initialized = true;
}
+2004-12-18 Bruno Haible <bruno@clisp.org>
+
+ * fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
+
2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
* ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
-# fatal-signal.m4 serial 2
-dnl Copyright (C) 2003 Free Software Foundation, Inc.
+# fatal-signal.m4 serial 3
+dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
AC_REQUIRE([gt_SIGNALBLOCKING])
AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T])
AC_CHECK_HEADERS_ONCE(unistd.h)
- AC_CHECK_FUNCS(raise)
+ AC_CHECK_FUNCS(raise sigaction)
])