From 431c32bf7976add2297c71f482cb2669765ed616 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Jan 2010 01:53:39 +0100 Subject: [PATCH] when resetting signal handlers, set them to SA_RESTART --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index 38ed74fb..654b93d7 100644 --- a/util.c +++ b/util.c @@ -488,6 +488,7 @@ int reset_all_signal_handlers(void) { zero(sa); sa.sa_handler = SIG_DFL; + sa.sa_flags = SA_RESTART; /* On Linux the first two RT signals are reserved by * glibc, and sigaction() will return EINVAL for them. */ -- 2.39.5