diff options
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r-- | miscutils/rx.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c index 9a8fcaa20..48867b83c 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
@@ -220,7 +220,6 @@ static void sigalrm_handler(int ATTRIBUTE_UNUSED signum) | |||
220 | int rx_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 220 | int rx_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
221 | int rx_main(int argc, char **argv) | 221 | int rx_main(int argc, char **argv) |
222 | { | 222 | { |
223 | struct sigaction act; | ||
224 | struct termios tty, orig_tty; | 223 | struct termios tty, orig_tty; |
225 | int termios_err; | 224 | int termios_err; |
226 | int file_fd; | 225 | int file_fd; |
@@ -243,9 +242,7 @@ int rx_main(int argc, char **argv) | |||
243 | } | 242 | } |
244 | 243 | ||
245 | /* No SA_RESTART: we want ALRM to interrupt read() */ | 244 | /* No SA_RESTART: we want ALRM to interrupt read() */ |
246 | memset(&act, 0, sizeof(act)); | 245 | signal_no_SA_RESTART_empty_mask(SIGALRM, sigalrm_handler); |
247 | act.sa_handler = sigalrm_handler; | ||
248 | sigaction(SIGALRM, &act, NULL); | ||
249 | 246 | ||
250 | n = receive(file_fd); | 247 | n = receive(file_fd); |
251 | 248 | ||