Mercurial > emacs
comparison src/term.c @ 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 | 4325622babca |
| children | e4ad0b168969 |
comparison
equal
deleted
inserted
replaced
| 109632:d8dbbecff672 | 109633:ce2dcd6fda75 |
|---|---|
| 3341 #ifndef DOS_NT | 3341 #ifndef DOS_NT |
| 3342 int pgid; | 3342 int pgid; |
| 3343 EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */ | 3343 EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */ |
| 3344 if (pgid != -1) | 3344 if (pgid != -1) |
| 3345 { | 3345 { |
| 3346 #if defined (USG) | 3346 #if defined (USG5) |
| 3347 setpgrp (); | 3347 setpgrp (); |
| 3348 no_controlling_tty = 1; | 3348 no_controlling_tty = 1; |
| 3349 #elif defined (CYGWIN) | 3349 #elif defined (CYGWIN) |
| 3350 setsid (); | 3350 setsid (); |
| 3351 no_controlling_tty = 1; | 3351 no_controlling_tty = 1; |
