chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6469c77
)
udevd: add back SA_RESTART
author
Kay Sievers
<kay.sievers@vrfy.org>
Wed, 21 Jan 2009 17:55:59 +0000
(18:55 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Wed, 21 Jan 2009 17:55:59 +0000
(18:55 +0100)
<Keybuk> poll, select, ppoll, pselect, epoll, etc. are *explicitly* NOT restarted in case of signal
<kay> ok
udev/udevd.c
patch
|
blob
|
history
diff --git
a/udev/udevd.c
b/udev/udevd.c
index 7e87068068ae9409ff915629bfca7f6d6df700a1..d08cf30f29b806340f3e5099193fc831a607314d 100644
(file)
--- 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);