[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109009: Move DONT_REOPEN_PTY from sr
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109009: Move DONT_REOPEN_PTY from src/s to configure |
Date: |
Tue, 10 Jul 2012 22:29:13 -0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109009
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2012-07-10 22:29:13 -0400
message:
Move DONT_REOPEN_PTY from src/s to configure
* configure.ac (DONT_REOPEN_PTY): Move here from src/s.
* src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
Move DONT_REOPEN_PTY to configure.
modified:
ChangeLog
configure.ac
src/ChangeLog
src/s/darwin.h
src/s/freebsd.h
src/s/netbsd.h
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-07-11 02:16:25 +0000
+++ b/ChangeLog 2012-07-11 02:29:13 +0000
@@ -1,5 +1,7 @@
2012-07-11 Glenn Morris <address@hidden>
+ * configure.ac (DONT_REOPEN_PTY): Move here from src/s.
+
* configure.ac (DEFAULT_SOUND_DEVICE): New definition.
2012-07-10 Paul Eggert <address@hidden>
=== modified file 'configure.ac'
--- a/configure.ac 2012-07-11 02:16:25 +0000
+++ b/configure.ac 2012-07-11 02:29:13 +0000
@@ -3145,6 +3145,14 @@
;;
esac
+case $opsys in
+ darwin | freebsd | netbsd | openbsd )
+ AC_DEFINE(DONT_REOPEN_PTY, 1, [Define if process.c does not need to
+ close a pty to make it a controlling terminal (it is already a
+ controlling terminal of the subprocess, because we did ioctl
TIOCSCTTY).])
+ ;;
+esac
+
dnl FIXME Surely we can test for this rather than hard-code it.
case $opsys in
netbsd | openbsd) sound_device="/dev/audio" ;;
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-07-11 02:16:25 +0000
+++ b/src/ChangeLog 2012-07-11 02:29:13 +0000
@@ -1,5 +1,8 @@
2012-07-11 Glenn Morris <address@hidden>
+ * s/darwin.h, s/freebsd.h, s/netbsd.h:
+ Move DONT_REOPEN_PTY to configure.
+
* sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
* s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.
=== modified file 'src/s/darwin.h'
--- a/src/s/darwin.h 2012-07-10 07:37:17 +0000
+++ b/src/s/darwin.h 2012-07-11 02:29:13 +0000
@@ -126,8 +126,3 @@
context as of Darwin 9/Mac OS X 10.5. */
#undef HAVE_WORKING_VFORK
#define vfork fork
-
-/* Don't close pty in process.c to make it as controlling terminal.
- It is already a controlling terminal of subprocess, because we did
- ioctl TIOCSCTTY. */
-#define DONT_REOPEN_PTY
=== modified file 'src/s/freebsd.h'
--- a/src/s/freebsd.h 2012-07-10 07:37:17 +0000
+++ b/src/s/freebsd.h 2012-07-11 02:29:13 +0000
@@ -33,11 +33,6 @@
#define BSD_SYSTEM 199506
#endif
-/* Don't close pty in process.c to make it as controlling terminal.
- It is already a controlling terminal of subprocess, because we did
- ioctl TIOCSCTTY. */
-#define DONT_REOPEN_PTY
-
/* Circumvent a bug in FreeBSD. In the following sequence of
writes/reads on a PTY, read(2) returns bogus data:
=== modified file 'src/s/netbsd.h'
--- a/src/s/netbsd.h 2012-07-11 02:16:25 +0000
+++ b/src/s/netbsd.h 2012-07-11 02:29:13 +0000
@@ -26,11 +26,6 @@
that are handled with CPP __RENAME() macro in signal.h. */
#include <signal.h>
-/* Don't close pty in process.c to make it as controlling terminal.
- It is already a controlling terminal of subprocess, because we did
- ioctl TIOCSCTTY. */
-#define DONT_REOPEN_PTY
-
/* Tell that garbage collector that setjmp is known to save all
registers relevant for conservative garbage collection in the jmp_buf. */
#define GC_SETJMP_WORKS 1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109009: Move DONT_REOPEN_PTY from src/s to configure,
Glenn Morris <=