summaryrefslogtreecommitdiff
path: root/ptyim.c
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-12 02:15:14 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2025-09-12 02:15:14 -0700
commitfb2cd41becad2167d5e34cdac55ad531774716a9 (patch)
treec0df4b5a407b68e35fe0b85c2b6457748686c74c /ptyim.c
parentf73ca2304e8762f9510020cedbc301b60b21d8f3 (diff)
added an easy identifier to the output manager child process
Diffstat (limited to 'ptyim.c')
-rw-r--r--ptyim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ptyim.c b/ptyim.c
index f4e7c17..ab4ebe6 100644
--- a/ptyim.c
+++ b/ptyim.c
@@ -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) {