[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/sysdep.c,v
From: |
Andreas Schwab |
Subject: |
[Emacs-diffs] Changes to emacs/src/sysdep.c,v |
Date: |
Mon, 06 Oct 2008 21:27:47 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Andreas Schwab <schwab> 08/10/06 21:27:46
Index: sysdep.c
===================================================================
RCS file: /sources/emacs/emacs/src/sysdep.c,v
retrieving revision 1.316
retrieving revision 1.317
diff -u -b -r1.316 -r1.317
--- sysdep.c 4 Oct 2008 14:51:29 -0000 1.316
+++ sysdep.c 6 Oct 2008 21:27:46 -0000 1.317
@@ -2124,7 +2124,8 @@
struct sigaction new_action, old_action;
sigemptyset (&new_action.sa_mask);
new_action.sa_handler = action;
-#if defined (SA_RESTART) && ! defined (BROKEN_SA_RESTART) &&
!defined(SYNC_INPUT)
+ new_action.sa_flags = 0;
+#if defined (SA_RESTART)
/* Emacs mostly works better with restartable system services. If this
flag exists, we probably want to turn it on here.
However, on some systems this resets the timeout of `select'
@@ -2134,9 +2135,10 @@
When SYNC_INPUT is set, we don't want SA_RESTART because we need to poll
for pending input so we need long-running syscalls to be interrupted
after a signal that sets the interrupt_input_pending flag. */
+# if defined (BROKEN_SA_RESTART) || defined(SYNC_INPUT)
+ if (noninteractive)
+# endif
new_action.sa_flags = SA_RESTART;
-#else
- new_action.sa_flags = 0;
#endif
sigaction (signal_number, &new_action, &old_action);
return (old_action.sa_handler);