diff options
| author | Dan Nicolaescu | 2007-09-07 03:56:26 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-09-07 03:56:26 +0000 |
| commit | de52dcbb98c7459592e5511976a3c068060458d3 (patch) | |
| tree | 813871a4d016e047722fab509e49019f3e9d11c5 /src/term.c | |
| parent | c8f1ea764e39183369781f158db8df137f807833 (diff) | |
| download | emacs-de52dcbb98c7459592e5511976a3c068060458d3.tar.gz emacs-de52dcbb98c7459592e5511976a3c068060458d3.zip | |
* term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 98d3b868349..2ed6435c344 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3130,6 +3130,9 @@ dissociate_if_controlling_tty (int fd) | |||
| 3130 | #if defined (USG) && !defined (BSD_PGRPS) | 3130 | #if defined (USG) && !defined (BSD_PGRPS) |
| 3131 | setpgrp (); | 3131 | setpgrp (); |
| 3132 | no_controlling_tty = 1; | 3132 | no_controlling_tty = 1; |
| 3133 | #elif defined (CYGWIN) | ||
| 3134 | setsid (); | ||
| 3135 | no_controlling_tty = 1; | ||
| 3133 | #else | 3136 | #else |
| 3134 | #ifdef TIOCNOTTY /* Try BSD ioctls. */ | 3137 | #ifdef TIOCNOTTY /* Try BSD ioctls. */ |
| 3135 | sigblock (sigmask (SIGTTOU)); | 3138 | sigblock (sigmask (SIGTTOU)); |