Skip to content

Commit 6a98e19

Browse files
committed
server/upsd.c: use setproctag() to identify upsd in debug logs [networkupstools#3302, networkupstools#3368]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 58d58d9 commit 6a98e19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/upsd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,6 +2315,7 @@ int main(int argc, char **argv)
23152315
struct passwd *new_uid = NULL;
23162316

23172317
progname = xbasename(argv[0]);
2318+
setproctag(progname);
23182319

23192320
#if (defined ENABLE_SHARED_PRIVATE_LIBS) && ENABLE_SHARED_PRIVATE_LIBS
23202321
callback_upsconf_args = do_upsconf_args;

0 commit comments

Comments
 (0)