Skip to content

Commit 060cc10

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clients/upslog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ int main(int argc, char **argv)
526526
callback_upsconf_args = do_upsconf_args;
527527
#endif
528528

529+
setproctag(prog);
529530
print_banner_once(prog, 0);
530531

531532
while ((i = getopt(argc, argv, "+hDs:l:i:d:Nf:u:Vp:FBm:W:")) != -1) {

0 commit comments

Comments
 (0)