diff options
author | sabetts <sabetts> | 2000-08-27 22:53:28 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-08-27 22:53:28 +0000 |
commit | 2ce23d2f1ab9d6e0231ec580b5ffe4826cba8c24 (patch) | |
tree | bb10100f3d73b9c88b9a76fca2b6cdfb677a5bcc | |
parent | b0e96491c2cf600e98657624064deb2e819771ba (diff) | |
download | ratpoison-2ce23d2f1ab9d6e0231ec580b5ffe4826cba8c24.zip |
put the initialization of signal handlers far up in the initialization.
-rw-r--r-- | main.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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); |