diff --git a/qpsmtpd-forkserver b/qpsmtpd-forkserver index c89b8ef..9bb89be 100755 --- a/qpsmtpd-forkserver +++ b/qpsmtpd-forkserver @@ -116,6 +116,8 @@ if ($PID_FILE) { } seek PID, 0, 0 or die "Could not seek back to beginning of $PID_FILE: $!\n"; + truncate PID, 0 + or die "Could not truncate $PID_FILE at 0: $!"; } else { open PID, ">$PID_FILE" or die "open pid_file: $!\n";