commit 37d429b0d8162e4cd807cac4a5da76b15c92223c from: Omar Polo date: Thu Apr 01 09:54:42 2021 UTC drop pid from the proc title commit - b35751391b2c524617ef856ea156f44b4ab68972 commit + 37d429b0d8162e4cd807cac4a5da76b15c92223c blob - ba5e9868bb4d161ad5292766dc2b1f9c82165314 blob + 185a4ca90006ff9a58aeb4571ffa3257f7c25b5a --- telescope.c +++ telescope.c @@ -448,10 +448,7 @@ main(int argc, char * const *argv) { struct imsgbuf network_ibuf, fs_ibuf; int net_fds[2], fs_fds[2]; - pid_t pid; - pid = getpid(); - signal(SIGCHLD, SIG_IGN); /* initialize part of the fs layer. Before starting the UI @@ -466,7 +463,7 @@ main(int argc, char * const *argv) err(1, "fork"); case 0: /* child */ - setproctitle("(%d) fs", pid); + setproctitle("fs"); close(fs_fds[0]); imsg_init(&fs_ibuf, fs_fds[1]); exit(fs_main(&fs_ibuf)); @@ -484,7 +481,7 @@ main(int argc, char * const *argv) err(1, "fork"); case 0: /* child */ - setproctitle("(%d) client", pid); + setproctitle("client"); close(net_fds[0]); close(fs_fds[0]); imsg_init(&network_ibuf, net_fds[1]); @@ -495,7 +492,7 @@ main(int argc, char * const *argv) netibuf = &network_ibuf; } - setproctitle("(%d) ui", pid); + setproctitle("ui"); telescope_ohash_init(&certs, 5, offsetof(struct tofu_entry, domain)); load_certs(&certs);