summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2021-03-31 16:11:02 +0000
committerclaudio <claudio@openbsd.org>2021-03-31 16:11:02 +0000
commit27bea8e574571fd645e232099347d031f8933505 (patch)
treec573c8d2027a57d5ff096b3be56bdbe541912597
parentFix some debug output when running in foreground. (diff)
downloadwireguard-openbsd-27bea8e574571fd645e232099347d031f8933505.tar.xz
wireguard-openbsd-27bea8e574571fd645e232099347d031f8933505.zip
Set the process title for the rpki-client subprocesses so they can be
identified more easily. OK deraadt@
-rw-r--r--usr.sbin/rpki-client/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 35f0956debd..a5eb0321390 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.126 2021/03/29 03:45:35 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.127 2021/03/31 16:11:02 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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");