summaryrefslogtreecommitdiff
path: root/dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dm.c')
-rw-r--r--dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dm.c b/dm.c
index 655380e..c482017 100644
--- a/dm.c
+++ b/dm.c
@@ -910,6 +910,7 @@ StorePid (void)
# endif
#endif
}
+ ftruncate(pidFd, 0);
fprintf (pidFilePtr, "%5ld\n", (long)getpid ());
(void) fflush (pidFilePtr);
RegisterCloseOnFork (pidFd);