1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

HackStudio: Show the slave pty's PGID in the ProcessStateWidget

This is the closest I could figure out how to get to what's actively
running on the terminal view at the moment.

Perhaps we can bundle up every process with the same tty and sum it
all up somehow. I'm not sure.
This commit is contained in:
Andreas Kling 2019-10-24 20:56:13 +02:00
parent ef64e26317
commit bced810880
3 changed files with 12 additions and 9 deletions

View file

@ -10,7 +10,7 @@ class ProcessStateWidget final : public GWidget {
public:
virtual ~ProcessStateWidget() override;
void set_pid(pid_t);
void set_tty_fd(int);
private:
explicit ProcessStateWidget(GWidget* parent);
@ -24,5 +24,5 @@ private:
RefPtr<CTimer> m_timer;
pid_t m_pid { -1 };
int m_tty_fd { -1 };
};