Added missing newline characters
This commit is contained in:
parent
b552e0b488
commit
4b726caa36
|
@ -18,7 +18,7 @@ sendsignal(int signum, union sigval sv)
|
||||||
fd = open(LOCKFILE, O_RDONLY);
|
fd = open(LOCKFILE, O_RDONLY);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
if (errno == ENOENT) {
|
if (errno == ENOENT) {
|
||||||
fputs("Error: no running instance of dwmblocks.", stderr);
|
fputs("Error: no running instance of dwmblocks.\n", stderr);
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
perror("sendsignal - fd");
|
perror("sendsignal - fd");
|
||||||
|
@ -33,15 +33,15 @@ sendsignal(int signum, union sigval sv)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (fl.l_type == F_UNLCK) {
|
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);
|
exit(2);
|
||||||
}
|
}
|
||||||
if (sigqueue(fl.l_pid, signum, sv) == -1) {
|
if (sigqueue(fl.l_pid, signum, sv) == -1) {
|
||||||
if (errno == EINVAL) {
|
if (errno == EINVAL) {
|
||||||
fputs("Error: invalid signal provided in argument.", stderr);
|
fputs("Error: invalid signal provided in argument.\n", stderr);
|
||||||
exit(3);
|
exit(3);
|
||||||
} else if (errno == ESRCH) {
|
} else if (errno == ESRCH) {
|
||||||
fputs("Error: no running instance of dwmblocks.", stderr);
|
fputs("Error: no running instance of dwmblocks.\n", stderr);
|
||||||
exit(2);
|
exit(2);
|
||||||
} else {
|
} else {
|
||||||
perror("sendsignal - sigqueue");
|
perror("sendsignal - sigqueue");
|
||||||
|
|
Loading…
Reference in a new issue