use unlink() instead of remove()

`remove()` will do a rmdir if necessary - we don't want that. So we use `unlink()`
This commit is contained in:
Christian Kruse
2014-01-21 15:22:31 +01:00
parent 7cf2eb440d
commit 649086e5e4

View File

@@ -1302,7 +1302,7 @@ terminate(int retval)
if (pid_file)
{
remove(pid_file);
unlink(pid_file);
}
exit(retval);