* 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

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