Added missing newline characters

This commit is contained in:
Ashish Kumar Yadav 2020-07-12 02:42:35 +05:30
parent b552e0b488
commit 4b726caa36

View file

@ -18,7 +18,7 @@ sendsignal(int signum, union sigval sv)
fd = open(LOCKFILE, O_RDONLY);
if (fd == -1) {
if (errno == ENOENT) {
fputs("Error: no running instance of dwmblocks.", stderr);
fputs("Error: no running instance of dwmblocks.\n", stderr);
exit(2);
}
perror("sendsignal - fd");
@ -33,15 +33,15 @@ sendsignal(int signum, union sigval sv)
exit(1);
}
if (fl.l_type == F_UNLCK) {
fputs("Error: no running instance of dwmblocks.", stderr);
fputs("Error: no running instance of dwmblocks.\n", stderr);
exit(2);
}
if (sigqueue(fl.l_pid, signum, sv) == -1) {
if (errno == EINVAL) {
fputs("Error: invalid signal provided in argument.", stderr);
fputs("Error: invalid signal provided in argument.\n", stderr);
exit(3);
} else if (errno == ESRCH) {
fputs("Error: no running instance of dwmblocks.", stderr);
fputs("Error: no running instance of dwmblocks.\n", stderr);
exit(2);
} else {
perror("sendsignal - sigqueue");