Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
authorDan Nicolaescu <dann@ics.uci.edu>
Thu, 5 Aug 2010 22:20:09 +0000 (15:20 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Thu, 5 Aug 2010 22:20:09 +0000 (15:20 -0700)
* 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.

src/ChangeLog
src/term.c

index 6841b26..575c935 100644 (file)
@@ -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].
index 85f4f2b..f41aacb 100644 (file)
@@ -3343,7 +3343,7 @@ dissociate_if_controlling_tty (int fd)
   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)