summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-27 22:53:28 +0000
committersabetts <sabetts>2000-08-27 22:53:28 +0000
commit2ce23d2f1ab9d6e0231ec580b5ffe4826cba8c24 (patch)
treebb10100f3d73b9c88b9a76fca2b6cdfb677a5bcc /main.c
parentb0e96491c2cf600e98657624064deb2e819771ba (diff)
downloadratpoison-2ce23d2f1ab9d6e0231ec580b5ffe4826cba8c24.zip
put the initialization of signal handlers far up in the initialization.
Diffstat (limited to 'main.c')
-rw-r--r--main.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/main.c b/main.c
index f147a64..2a16c27 100644
--- a/main.c
+++ b/main.c
@@ -113,6 +113,17 @@ main (int argc, char *argv[])
return EXIT_FAILURE;
}
+ /* Setup signal handlers. */
+ // XSetErrorHandler(handler);
+ if (signal (SIGALRM, alrm_handler) == SIG_IGN) signal (SIGALRM, SIG_IGN);
+ if (signal (SIGTERM, sighandler) == SIG_IGN) signal (SIGTERM, SIG_IGN);
+ if (signal (SIGINT, sighandler) == SIG_IGN) signal (SIGINT, SIG_IGN);
+ if (signal (SIGHUP, hup_handler) == SIG_IGN)
+ {
+ printf ("Ignoring HUP.\n");
+ signal (SIGHUP, SIG_IGN);
+ }
+
init_window_list ();
font = XLoadQueryFont (dpy, FONT_NAME);
@@ -137,17 +148,6 @@ main (int argc, char *argv[])
init_screen (&screens[i], i);
}
- /* Setup signal handlers. */
- // XSetErrorHandler(handler);
- if (signal (SIGALRM, alrm_handler) == SIG_IGN) signal (SIGALRM, SIG_IGN);
- if (signal (SIGTERM, sighandler) == SIG_IGN) signal (SIGTERM, SIG_IGN);
- if (signal (SIGINT, sighandler) == SIG_IGN) signal (SIGINT, SIG_IGN);
- if (signal (SIGHUP, hup_handler) == SIG_IGN)
- {
- printf ("Ignoring HUP.\n");
- signal (SIGHUP, SIG_IGN);
- }
-
/* Set our Atoms */
wm_state = XInternAtom(dpy, "WM_STATE", False);
wm_change_state = XInternAtom(dpy, "WM_CHANGE_STATE", False);