From 71ba0d76ba8d5ec6719fcf3319e023bc0e2a9308 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 18 Oct 2013 20:07:35 +0000 Subject: * tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is an error condition. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/tty.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3e46685..c2a5ee3 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-10-18 Christopher Faylor + + * tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is + an error condition. + 2013-10-16 Corinna Vinschen * fhandler_process.cc (format_process_ctty): Fix random content of diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 7388ac1..01c53f9 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -141,7 +141,7 @@ tty_list::allocate (HANDLE& r, HANDLE& w) { t = ttys + i; t->init (); - t->setsid (-1); + t->setsid (0); freetty = i; break; } -- cgit v1.1