+2013-01-11 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix SIGDANGER handlers, for AIX (Bug#13408).
+ * sysdep.c.c (handle_danger_signal, deliver_danger_signal) [SIGDANGER]:
+ Move handlers here from emacs.c; they were out of place.
+
2013-01-05 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (dump_glyph): Align glyph data better. Use "pD" instead
/* This shouldn't be executed, but it prevents a warning. */
exit (1);
}
-
-#ifdef SIGDANGER
-
-/* Handler for SIGDANGER. */
-static void
-handle_danger_signal (int sig)
-{
- malloc_warning ("Operating system warns that virtual memory is running low.\n");
-
- /* It might be unsafe to call do_auto_save now. */
- force_auto_save_soon ();
-}
-
-static void
-deliver_danger_signal (int sig)
-{
- deliver_process_signal (sig, handle_danger_signal);
-}
-#endif
\f
/* Code for dealing with Lisp access to the Unix command line. */
deliver_thread_signal (sig, handle_arith_signal);
}
+#ifdef SIGDANGER
+
+/* Handler for SIGDANGER. */
+static void
+handle_danger_signal (int sig)
+{
+ malloc_warning ("Operating system warns that virtual memory is running low.\n");
+
+ /* It might be unsafe to call do_auto_save now. */
+ force_auto_save_soon ();
+}
+
+static void
+deliver_danger_signal (int sig)
+{
+ deliver_process_signal (sig, handle_danger_signal);
+}
+#endif
+
/* Treat SIG as a terminating signal, unless it is already ignored and
we are in --batch mode. Among other things, this makes nohup work. */
static void