diff --git a/src/util/select.h b/src/util/select.h index 82022e50e..39a4d724b 100644 --- a/src/util/select.h +++ b/src/util/select.h @@ -108,7 +108,7 @@ class Select /* Register a handler, which will only be called when pselect() is interrupted by a (possibly queued) signal. */ struct sigaction sa; - sa.sa_flags = 0; + sa.sa_flags = SA_RESTART; sa.sa_handler = &handle_signal; fatal_assert( 0 == sigfillset( &sa.sa_mask ) ); fatal_assert( 0 == sigaction( signum, &sa, NULL ) );