commit - b35751391b2c524617ef856ea156f44b4ab68972
commit + 37d429b0d8162e4cd807cac4a5da76b15c92223c
blob - ba5e9868bb4d161ad5292766dc2b1f9c82165314
blob + 185a4ca90006ff9a58aeb4571ffa3257f7c25b5a
--- telescope.c
+++ telescope.c
{
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
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));
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]);
netibuf = &network_ibuf;
}
- setproctitle("(%d) ui", pid);
+ setproctitle("ui");
telescope_ohash_init(&certs, 5, offsetof(struct tofu_entry, domain));
load_certs(&certs);