mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 16:40:59 +00:00
TTY: Forward TIOCGPGRP from MasterPTY to SlavePTY
This makes tcgetpgrp() on a master PTY return the PGID of the slave PTY which is probably what you are looking for. I'm not sure how correct or standardized this is, but it makes sense to me right now.
This commit is contained in:
parent
272317bce2
commit
ef64e26317
|
@ -98,7 +98,7 @@ void MasterPTY::close()
|
|||
|
||||
int MasterPTY::ioctl(FileDescription& description, unsigned request, unsigned arg)
|
||||
{
|
||||
if (request == TIOCSWINSZ)
|
||||
if (request == TIOCSWINSZ || request == TIOCGPGRP)
|
||||
return m_slave->ioctl(description, request, arg);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue