]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
pidfiles normally have a new line
authorRoy Marples <roy@marples.name>
Mon, 18 Aug 2008 18:34:40 +0000 (18:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 18 Aug 2008 18:34:40 +0000 (18:34 +0000)
common.c

index f27bb482b4c88554a27a5c9b83a797e0cc039c98..d90c7d2f2eada4120e688a32d9a0e948f08ed7d1 100644 (file)
--- a/common.c
+++ b/common.c
@@ -270,7 +270,7 @@ writepid(int fd, pid_t pid)
 
        if (ftruncate(fd, (off_t)0) == -1)
                return -1;
-       snprintf(spid, sizeof(spid), "%u", pid);
+       snprintf(spid, sizeof(spid), "%u\n", pid);
        len = pwrite(fd, spid, strlen(spid), (off_t)0);
        if (len != (ssize_t)strlen(spid))
                return -1;