changeset 84359:b651dc7c54ac

* term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 07 Sep 2007 03:56:26 +0000
parents d2cda61c7c00
children 07d871329e5d
files src/ChangeLog src/term.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Sep 07 03:32:35 2007 +0000
+++ b/src/ChangeLog	Fri Sep 07 03:56:26 2007 +0000
@@ -1,3 +1,7 @@
+2007-09-07  Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>  (tiny change)
+
+	* term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
+
 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* window.c (Vsplit_window_preferred_function): New var.
--- a/src/term.c	Fri Sep 07 03:32:35 2007 +0000
+++ b/src/term.c	Fri Sep 07 03:56:26 2007 +0000
@@ -3130,6 +3130,9 @@
 #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));