* tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is an error

condition.
This commit is contained in:
Christopher Faylor 2013-10-18 20:07:35 +00:00
parent f3debae528
commit 71ba0d76ba
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;
}