changeset 109633:ce2dcd6fda75

Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux. * src/term.c (dissociate_if_controlling_tty): Use USG5 instead of USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS), which is what was there before BSD_PGRPS was removed.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 05 Aug 2010 15:20:09 -0700
parents d8dbbecff672
children e4ad0b168969
files src/ChangeLog src/term.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Aug 05 11:30:35 2010 -0700
+++ b/src/ChangeLog	Thu Aug 05 15:20:09 2010 -0700
@@ -1,3 +1,10 @@
+2010-08-05  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
+	* term.c (dissociate_if_controlling_tty): Use USG5 instead of
+	USG.  This is equivalent to defined (USG) && !defined (BSD_PGRPS),
+	which is what was there before BSD_PGRPS was removed.
+
 2010-08-05  Eli Zaretskii  <eliz@gnu.org>
 
 	* deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
--- a/src/term.c	Thu Aug 05 11:30:35 2010 -0700
+++ b/src/term.c	Thu Aug 05 15:20:09 2010 -0700
@@ -3343,7 +3343,7 @@
   EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */
   if (pgid != -1)
     {
-#if defined (USG)
+#if defined (USG5)
       setpgrp ();
       no_controlling_tty = 1;
 #elif defined (CYGWIN)