From 66aadf638f7d4438b41066b6a0833062136b63a4 Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Tue, 19 Jan 2021 16:50:24 +0000 Subject: No need for a global uw_process; unbreaks -fno-common. Problem reported by mortimer --- sbin/unwind/frontend.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sbin/unwind/frontend.c') 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 @@ -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) || -- cgit v1.2.3