diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-12 02:15:14 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-12 02:15:14 -0700 |
commit | fb2cd41becad2167d5e34cdac55ad531774716a9 (patch) | |
tree | c0df4b5a407b68e35fe0b85c2b6457748686c74c | |
parent | f73ca2304e8762f9510020cedbc301b60b21d8f3 (diff) |
added an easy identifier to the output manager child process
-rw-r--r-- | ptyim.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -136,6 +136,8 @@ int main (int argc, char * argv[], char * envp[]) { //process just handles transfering pty output to stdout pid_t om_pid = fork(); if (om_pid == 0) { + //sets the name for cleaner ps output + prctl(PR_SET_NAME, "ptyim om thread"); //output manager child process //runs forever until SIGKILL'd while (true) { |