mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:18: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:
parent
ef64e26317
commit
bced810880
3 changed files with 12 additions and 9 deletions
|
@ -45,7 +45,7 @@ void TerminalWrapper::run_command(const String& command)
|
|||
} else if (WIFSIGNALED(wstatus)) {
|
||||
m_terminal_widget->inject_string(String::format("\033[34;1m(Command signaled with %s!)\033[0m\n", strsignal(WTERMSIG(wstatus))));
|
||||
}
|
||||
m_process_state_widget->set_pid(-1);
|
||||
m_process_state_widget->set_tty_fd(-1);
|
||||
m_pid = -1;
|
||||
};
|
||||
|
||||
|
@ -110,7 +110,7 @@ void TerminalWrapper::run_command(const String& command)
|
|||
}
|
||||
|
||||
// Parent process, cont'd.
|
||||
m_process_state_widget->set_pid(m_pid);
|
||||
m_process_state_widget->set_tty_fd(ptm_fd);
|
||||
}
|
||||
|
||||
TerminalWrapper::TerminalWrapper(GWidget* parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue