diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-05-04 17:28:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-05-04 17:28:16 +0000 |
commit | c4a2fdf15b5f6cd35319e36636b7daee8061c2ab (patch) | |
tree | 078b36e8669e687d32224b9a2239713781d787c5 /client.c | |
parent | af5e0bd15affd358017e43110ac5a6c3b22233bc (diff) | |
download | rtmux-c4a2fdf15b5f6cd35319e36636b7daee8061c2ab.tar.gz rtmux-c4a2fdf15b5f6cd35319e36636b7daee8061c2ab.tar.bz2 rtmux-c4a2fdf15b5f6cd35319e36636b7daee8061c2ab.zip |
Put this back in with the initialisation in the right order.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -172,35 +172,12 @@ client_update_event(void) __dead void client_main(void) { - struct event ev_sigcont, ev_sigterm, ev_sigwinch; - struct sigaction sigact; - logfile("client"); /* Note: event_init() has already been called. */ /* Set up signals. */ - memset(&sigact, 0, sizeof sigact); - sigemptyset(&sigact.sa_mask); - sigact.sa_flags = SA_RESTART; - sigact.sa_handler = SIG_IGN; - if (sigaction(SIGINT, &sigact, NULL) != 0) - fatal("sigaction failed"); - if (sigaction(SIGPIPE, &sigact, NULL) != 0) - fatal("sigaction failed"); - if (sigaction(SIGUSR1, &sigact, NULL) != 0) - fatal("sigaction failed"); - if (sigaction(SIGUSR2, &sigact, NULL) != 0) - fatal("sigaction failed"); - if (sigaction(SIGTSTP, &sigact, NULL) != 0) - fatal("sigaction failed"); - - signal_set(&ev_sigcont, SIGCONT, client_signal, NULL); - signal_add(&ev_sigcont, NULL); - signal_set(&ev_sigterm, SIGTERM, client_signal, NULL); - signal_add(&ev_sigterm, NULL); - signal_set(&ev_sigwinch, SIGWINCH, client_signal, NULL); - signal_add(&ev_sigwinch, NULL); + set_signals(client_signal); /* * imsg_read in the first client poll loop (before the terminal has |