- set_nonblocking(fds[0]);
- set_nonblocking(fds[1]);
- }
-}
-
-/* Sets up a handler for 'signr' and returns a structure that represents it.
- *
- * Only one handler for a given signal may be registered at a time. */
-struct signal *
-signal_register(int signr)
-{
- struct sigaction sa;
- struct signal *s;
-
- signal_init();
-
- /* Set up signal handler. */
- assert(signr >= 1 && signr < N_SIGNALS);
- memset(&sa, 0, sizeof sa);
- sa.sa_handler = signal_handler;
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_RESTART;
- if (sigaction(signr, &sa, NULL)) {
- ovs_fatal(errno, "sigaction(%d) failed", signr);