mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix tcgetpgrp resetting the foreground process group to zero.
This commit is contained in:
parent
9cc2f555e5
commit
3a1c89f7a5
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ int LogTerminal::tcsetpgrp(ioctx_t* /*ctx*/, pid_t pgid)
|
||||||
pid_t LogTerminal::tcgetpgrp(ioctx_t* /*ctx*/)
|
pid_t LogTerminal::tcgetpgrp(ioctx_t* /*ctx*/)
|
||||||
{
|
{
|
||||||
ScopedLock lock(&termlock);
|
ScopedLock lock(&termlock);
|
||||||
return foreground_pgid = 0;
|
return foreground_pgid;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LogTerminal::sync(ioctx_t* /*ctx*/)
|
int LogTerminal::sync(ioctx_t* /*ctx*/)
|
||||||
|
|
Loading…
Add table
Reference in a new issue