Small improvement in sigdwmblocks
This commit is contained in:
parent
d7a9975361
commit
230229c482
|
@ -7,6 +7,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#define NILL INT_MIN
|
||||||
#define LOCKFILE "/tmp/dwmblocks.pid"
|
#define LOCKFILE "/tmp/dwmblocks.pid"
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -60,7 +61,7 @@ main(int argc, char *argv[])
|
||||||
if (sscanf(argv[1], "%d", &signal) == 1 &&
|
if (sscanf(argv[1], "%d", &signal) == 1 &&
|
||||||
signal > 0 && (signal += SIGRTMIN) <= SIGRTMAX) {
|
signal > 0 && (signal += SIGRTMIN) <= SIGRTMAX) {
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
sv.sival_int = INT_MIN;
|
sv.sival_int = NILL;
|
||||||
sendsignal(signal, sv);
|
sendsignal(signal, sv);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (argc == 3 &&
|
} else if (argc == 3 &&
|
||||||
|
|
Loading…
Reference in a new issue