pidfile(): write newline too

This commit is contained in:
Nicolas Williams
2016-12-06 16:38:24 -06:00
parent 12eb54d03f
commit a6e8ff2ae5

View File

@@ -61,7 +61,7 @@ pid_file_write(const char *progname)
free(ret);
return NULL;
}
fprintf(fp, "%u", (unsigned)getpid());
fprintf(fp, "%lu\n", (unsigned long)getpid());
fclose(fp);
return ret;
}