From: Kay Sievers Date: Wed, 21 Jan 2009 17:55:59 +0000 (+0100) Subject: udevd: add back SA_RESTART X-Git-Tag: 174~1187 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5db88229d1d1d727ee1e60de583cedc6c6aa6d73;p=systemd udevd: add back SA_RESTART poll, select, ppoll, pselect, epoll, etc. are *explicitly* NOT restarted in case of signal ok --- 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);