From de52dcbb98c7459592e5511976a3c068060458d3 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Fri, 7 Sep 2007 03:56:26 +0000 Subject: [PATCH] * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. --- src/ChangeLog | 4 ++++ src/term.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 7fc05c40994..918b7bd191f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-09-07 Angelo Graziosi (tiny change) + + * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. + 2007-09-07 Stefan Monnier * window.c (Vsplit_window_preferred_function): New var. 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) #if defined (USG) && !defined (BSD_PGRPS) setpgrp (); no_controlling_tty = 1; +#elif defined (CYGWIN) + setsid (); + no_controlling_tty = 1; #else #ifdef TIOCNOTTY /* Try BSD ioctls. */ sigblock (sigmask (SIGTTOU)); -- 2.39.5