Use mkstemp() to write the PID file more safely, avoiding potential symlink issues.

This commit is contained in:
Andrew Wood
2023-08-26 21:45:31 +01:00
parent fe22f0e449
commit fb8bea390c
2 changed files with 70 additions and 10 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ Save the process ID of
.B @PACKAGE@
in
.BR FILE .
The file will be truncated if it already exists, and will be removed when
The file will be replaced if it already exists, and will be removed when
.B @PACKAGE@
exits. While
.B @PACKAGE@