Skip to content

Commit 1258a68

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 2802d66 commit 1258a68

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
@@ -2359,6 +2359,7 @@ int main(int argc, char **argv)
23592359
struct passwd *new_uid = NULL;
23602360

23612361
progname = xbasename(argv[0]);
2362+
setproctag(progname);
23622363

23632364
#if (defined ENABLE_SHARED_PRIVATE_LIBS) && ENABLE_SHARED_PRIVATE_LIBS
23642365
callback_upsconf_args = do_upsconf_args;

0 commit comments

Comments
 (0)