diff options
author | Christopher Faylor <me@cgf.cx> | 2013-10-18 20:07:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-10-18 20:07:35 +0000 |
commit | 71ba0d76ba8d5ec6719fcf3319e023bc0e2a9308 (patch) | |
tree | 3be82f96d1235830b8c2da0012101fba09b8605e /winsup/cygwin | |
parent | f3debae528f8822ee5bcb47525833d2c0a8f16af (diff) | |
download | newlib-71ba0d76ba8d5ec6719fcf3319e023bc0e2a9308.zip newlib-71ba0d76ba8d5ec6719fcf3319e023bc0e2a9308.tar.gz newlib-71ba0d76ba8d5ec6719fcf3319e023bc0e2a9308.tar.bz2 |
* tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is an error
condition.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/tty.cc | 2 |
2 files changed, 6 insertions, 1 deletions
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 <me.cygwin2013@cgf.cx> + + * tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is + an error condition. + 2013-10-16 Corinna Vinschen <corinna@vinschen.de> * 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; } |