-/* $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>
*
if (procpid == 0) {
close(fd[1]);
+ setproctitle("parser");
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");
close(proc);
close(fd[1]);
+ setproctitle("rsync");
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");
close(rsync);
close(fd[1]);
+ setproctitle("http");
/* change working directory to the cache directory */
if (fchdir(cachefd) == -1)
err(1, "fchdir");