diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-03-31 16:11:03 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-03-31 16:11:03 +0000 |
commit | 168cd7d8fdfdc2b58b5fe23da91beeda1eec8776 (patch) | |
tree | 0f8f1691df9a075a9f74982fe7863c702575b66c | |
parent | 4a7f9fef1a6aa6ecfc793ca03302996242976e63 (diff) |
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.c | 5 |
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"); |