It is time to use setproctitle() in rpki-client.
Right now there are three processes, soon it will be four.
This should help identify the different processes.
I did not change the proc title of the main process to keep the arguments.
--
:wq Claudio
Index: main.c
===================================================================
RCS file: /cvs/src/usr.sbin/rpki-client/main.c,v
retrieving revision 1.126
diff -u -p -r1.126 main.c
--- main.c 29 Mar 2021 03:45:35 -0000 1.126
+++ main.c 31 Mar 2021 15:53:03 -0000
@@ -979,6 +979,7 @@ main(int argc, char *argv[])
if (procpid == 0) {
close(fd[1]);
+ setproctitle("parser");
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");
@@ -1012,6 +1013,7 @@ main(int argc, char *argv[])
close(proc);
close(fd[1]);
+ setproctitle("rsync");
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");
@@ -1047,6 +1049,7 @@ main(int argc, char *argv[])
close(rsync);
close(fd[1]);
+ setproctitle("http");
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");