Laslo Hunhold
8 years ago
committed by
Aaron Marcher
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with
5 additions and
7 deletions
-
slstatus.c
|
|
|
@ -837,11 +837,9 @@ wifi_essid(const char *iface) |
|
|
|
} |
|
|
|
|
|
|
|
static void |
|
|
|
sighandler(const int signo) |
|
|
|
terminate(const int signo) |
|
|
|
{ |
|
|
|
if (signo == SIGTERM || signo == SIGINT) { |
|
|
|
done = 1; |
|
|
|
} |
|
|
|
done = 1; |
|
|
|
} |
|
|
|
|
|
|
|
static void |
|
|
|
@ -874,9 +872,9 @@ main(int argc, char *argv[]) |
|
|
|
} |
|
|
|
|
|
|
|
memset(&act, 0, sizeof(act)); |
|
|
|
act.sa_handler = sighandler; |
|
|
|
sigaction(SIGINT, &act, 0); |
|
|
|
sigaction(SIGTERM, &act, 0); |
|
|
|
act.sa_handler = terminate; |
|
|
|
sigaction(SIGINT, &act, NULL); |
|
|
|
sigaction(SIGTERM, &act, NULL); |
|
|
|
|
|
|
|
if (!sflag) { |
|
|
|
dpy = XOpenDisplay(NULL); |
|
|
|
|