mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
Add tcsetpgrp()+tcgetpgrp().
One more step on the path to being able to ^C a runaway process. :^)
This commit is contained in:
parent
d8f0dd6f3b
commit
621217ffeb
11 changed files with 72 additions and 4 deletions
|
@ -176,6 +176,13 @@ const TTY* FileHandle::tty() const
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
TTY* FileHandle::tty()
|
||||
{
|
||||
if (auto* device = m_vnode->characterDevice())
|
||||
return static_cast<TTY*>(device);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int FileHandle::close()
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -30,6 +30,7 @@ public:
|
|||
|
||||
bool isTTY() const;
|
||||
const TTY* tty() const;
|
||||
TTY* tty();
|
||||
|
||||
InodeMetadata metadata() const { return m_vnode->metadata(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue