Commit faa5cc11 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Improve error message.

parent 3e001c78
......@@ -322,7 +322,10 @@ main(int argc, char **argv)
pfd = open(pidfile, O_WRONLY | O_CREAT | O_EXCL, 0644);
if(pfd < 0) {
perror("creat(pidfile)");
char buf[40];
snprintf(buf, 40, "creat(%s)", pidfile);
buf[39] = '\0';
perror(buf);
goto fail_nopid;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment