mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
openvpnctrl: Remove PID file after an openvpn process was killed.
This commit is contained in:
@@ -466,6 +466,10 @@ void killNet2Net(char *name) {
|
||||
fprintf(stderr, "Killing PID %d.\n", pid);
|
||||
kill(pid, SIGTERM);
|
||||
|
||||
char command[STRING_SIZE];
|
||||
snprintf(command, STRING_SIZE - 1, "/bin/rm -f %s", pidfile);
|
||||
executeCommand(command);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user