aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-07-07 11:16:15 -0700
committerGlenn Morris2012-07-07 11:16:15 -0700
commit41f9404e0cb421fcea07538bbd686d54200ed92d (patch)
tree9c603959ee77afdf3ae345c25c4a3244b2826930
parent929e7845741487751d88cc43c180a540f3996210 (diff)
downloademacs-41f9404e0cb421fcea07538bbd686d54200ed92d.tar.gz
emacs-41f9404e0cb421fcea07538bbd686d54200ed92d.zip
* configure.in (BROKEN_SA_RESTART): Doc fix.
* src/sysdep.c, src/s/irix6-5.h: Related comments.
-rw-r--r--ChangeLog2
-rw-r--r--configure.in8
-rw-r--r--src/s/irix6-5.h2
-rw-r--r--src/sysdep.c7
4 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b7fa14edd3..f488b7f3aee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
12012-07-07 Glenn Morris <rgm@gnu.org> 12012-07-07 Glenn Morris <rgm@gnu.org>
2 2
3 * configure.in (BROKEN_SA_RESTART): Doc fix.
4
3 * configure.in: Rather than checking for things then undef'ing 5 * configure.in: Rather than checking for things then undef'ing
4 them on some platforms, simply don't check for them. 6 them on some platforms, simply don't check for them.
5 (getwd): Don't check for it on unixware. 7 (getwd): Don't check for it on unixware.
diff --git a/configure.in b/configure.in
index fdd7ea0156c..59a7130ed49 100644
--- a/configure.in
+++ b/configure.in
@@ -3140,9 +3140,11 @@ case $opsys in
3140 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;; 3140 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
3141 3141
3142 hpux11) 3142 hpux11)
3143 dnl SA_RESTART resets the timeout of `select', so don't use it. 3143 dnl See comments in sysdep.c:sys_signal.
3144 AC_DEFINE(BROKEN_SA_RESTART, 1, [Define if SA_RESTART should not 3144 dnl SA_RESTART resets the timeout of `select' on hpux11.
3145 be used.]) 3145 dnl Defining BROKEN_SA_RESTART is not the same as undef'ing SA_RESTART.
3146 AC_DEFINE(BROKEN_SA_RESTART, 1, [Define if SA_RESTART should only
3147 be used in batch mode.])
3146 dnl It works to open the pty's tty in the parent (Emacs), then 3148 dnl It works to open the pty's tty in the parent (Emacs), then
3147 dnl close and reopen it in the child. 3149 dnl close and reopen it in the child.
3148 AC_DEFINE(USG_SUBTTY_WORKS, 1, [Define for USG systems where it 3150 AC_DEFINE(USG_SUBTTY_WORKS, 1, [Define for USG systems where it
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 7e5a5505ee2..30aca2b5416 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -80,7 +80,7 @@ char *_getpty();
80 80
81#define NARROWPROTO 1 81#define NARROWPROTO 1
82 82
83#undef SA_RESTART 83#undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */
84 84
85#undef TIOCSIGSEND /* defined in usg5-4-common.h */ 85#undef TIOCSIGSEND /* defined in usg5-4-common.h */
86 86
diff --git a/src/sysdep.c b/src/sysdep.c
index 475c977044b..0639b72285a 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1484,9 +1484,10 @@ sys_signal (int signal_number, signal_handler_t action)
1484#if defined (SA_RESTART) 1484#if defined (SA_RESTART)
1485 /* Emacs mostly works better with restartable system services. If this 1485 /* Emacs mostly works better with restartable system services. If this
1486 flag exists, we probably want to turn it on here. 1486 flag exists, we probably want to turn it on here.
1487 However, on some systems this resets the timeout of `select' 1487 However, on some systems (only hpux11 at present) this resets the
1488 which means that `select' never finishes if it keeps getting signals. 1488 timeout of `select' which means that `select' never finishes if
1489 BROKEN_SA_RESTART is defined on those systems. */ 1489 it keeps getting signals.
1490 We define BROKEN_SA_RESTART on those systems. */
1490 /* It's not clear why the comment above says "mostly works better". --Stef 1491 /* It's not clear why the comment above says "mostly works better". --Stef
1491 When SYNC_INPUT is set, we don't want SA_RESTART because we need to poll 1492 When SYNC_INPUT is set, we don't want SA_RESTART because we need to poll
1492 for pending input so we need long-running syscalls to be interrupted 1493 for pending input so we need long-running syscalls to be interrupted