Fix tcgetpgrp resetting the foreground process group to zero.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-03-05 23:25:05 +01:00
parent 9cc2f555e5
commit 3a1c89f7a5
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ int LogTerminal::tcsetpgrp(ioctx_t* /*ctx*/, pid_t pgid)
pid_t LogTerminal::tcgetpgrp(ioctx_t* /*ctx*/)
{
ScopedLock lock(&termlock);
return foreground_pgid = 0;
return foreground_pgid;
}
int LogTerminal::sync(ioctx_t* /*ctx*/)