mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +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
|
@ -12,6 +12,9 @@ public:
|
|||
|
||||
virtual String ttyName() const = 0;
|
||||
|
||||
void set_pgid(pid_t pgid) { m_pgid = pgid; }
|
||||
pid_t pgid() const { return m_pgid; }
|
||||
|
||||
protected:
|
||||
virtual bool isTTY() const final { return true; }
|
||||
|
||||
|
@ -22,5 +25,6 @@ protected:
|
|||
|
||||
private:
|
||||
Vector<byte> m_buffer;
|
||||
pid_t m_pgid { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue