From: Roy Marples Date: Mon, 18 Aug 2008 18:34:40 +0000 (+0000) Subject: pidfiles normally have a new line X-Git-Tag: v4.0.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ffd7d9402282dbc757ae6b07cf2629b89704940;p=thirdparty%2Fdhcpcd.git pidfiles normally have a new line --- diff --git a/common.c b/common.c index f27bb482..d90c7d2f 100644 --- 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;