From 5db88229d1d1d727ee1e60de583cedc6c6aa6d73 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 21 Jan 2009 18:55:59 +0100 Subject: [PATCH] udevd: add back SA_RESTART poll, select, ppoll, pselect, epoll, etc. are *explicitly* NOT restarted in case of signal ok --- udev/udevd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/udev/udevd.c b/udev/udevd.c index 7e870680..d08cf30f 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -831,6 +831,7 @@ int main(int argc, char *argv[]) memset(&act, 0x00, sizeof(struct sigaction)); act.sa_handler = (void (*)(int)) sig_handler; sigemptyset(&act.sa_mask); + act.sa_flags = SA_RESTART; sigaction(SIGINT, &act, NULL); sigaction(SIGTERM, &act, NULL); sigaction(SIGCHLD, &act, NULL); -- 2.39.5