summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio/TerminalWrapper.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-24 20:56:13 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-24 20:56:13 +0200
commitbced810880d38b0ff1ebdebc9d47c1ef081e3fa1 (patch)
tree11b54e1d4f56da86b58e9b835c0331ac2306557b /DevTools/HackStudio/TerminalWrapper.cpp
parentef64e26317635b84f1f5351bc7cbe8ff5bbf92d6 (diff)
downloadserenity-bced810880d38b0ff1ebdebc9d47c1ef081e3fa1.zip
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.
Diffstat (limited to 'DevTools/HackStudio/TerminalWrapper.cpp')
-rw-r--r--DevTools/HackStudio/TerminalWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/HackStudio/TerminalWrapper.cpp b/DevTools/HackStudio/TerminalWrapper.cpp
index 6ee696eed9..3e6303680d 100644
--- a/DevTools/HackStudio/TerminalWrapper.cpp
+++ b/DevTools/HackStudio/TerminalWrapper.cpp
@@ -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)