Skip to content

Commit

Permalink
snmp: changed termination order causing error due to new logging
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Feb 22, 2024
1 parent 01938b7 commit c5b852f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/snmp/snmp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ main(int argc,
ok:
retval = 0;
done:
snmp_terminate(h);
clixon_log_init(h, __PROGRAM__, LOG_INFO, 0); /* Log on syslog no stderr */
clixon_log(h, LOG_NOTICE, "%s: %u Terminated", __PROGRAM__, getpid());
snmp_terminate(h);
return retval;
}

0 comments on commit c5b852f

Please sign in to comment.