fix duplicate processes

This commit is contained in:
prx 2022-10-08 21:40:27 +02:00
parent 29a5701dee
commit 0662ac5bfa

2
main.c
View File

@ -162,6 +162,8 @@ main(int argc, char *argv[])
runcmd(bancmd[0], bancmd); runcmd(bancmd[0], bancmd);
syslog(LOG_DAEMON, "kill states for %s", ip); syslog(LOG_DAEMON, "kill states for %s", ip);
runcmd(killstatecmd[0], killstatecmd); runcmd(killstatecmd[0], killstatecmd);
close(sockfd);
exit(0);
} }
} }
close(sockfd); close(sockfd);