summaryrefslogtreecommitdiff
path: root/sbin/unwind/frontend.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-01-19 16:50:24 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-01-19 16:50:24 +0000
commit66aadf638f7d4438b41066b6a0833062136b63a4 (patch)
tree7cf01c8cd9da2dd878ff6a9c16144ca3831e852c /sbin/unwind/frontend.c
parent03e464e751a76f5d81be388f12ef8c595d58de71 (diff)
No need for a global uw_process; unbreaks -fno-common.
Problem reported by mortimer
Diffstat (limited to 'sbin/unwind/frontend.c')
-rw-r--r--sbin/unwind/frontend.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/unwind/frontend.c b/sbin/unwind/frontend.c
index 9ef3c6b96a5..9737cc636f5 100644
--- a/sbin/unwind/frontend.c
+++ b/sbin/unwind/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.60 2021/01/12 16:40:33 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.61 2021/01/19 16:50:23 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -198,9 +198,8 @@ frontend(int debug, int verbose)
if (chdir("/") == -1)
fatal("chdir(\"/\")");
- uw_process = PROC_FRONTEND;
- setproctitle("%s", log_procnames[uw_process]);
- log_procinit(log_procnames[uw_process]);
+ setproctitle("%s", "frontend");
+ log_procinit("frontend");
if (setgroups(1, &pw->pw_gid) ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||