openvpnctrl: Remove PID file after an openvpn process was killed.

This commit is contained in:
Michael Tremer
2011-06-29 20:02:31 +02:00
parent 80ca8bd0f5
commit d4c8b6bec2

View File

@@ -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);
}