1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00
systemd/udev
Olaf Kirch 3210a72ba3 udevd: use ppoll instead of signal pipes
udevd uses a rather old-fashioned way of handling signals
while waiting for input through select (ie by using an unnamed
pipe, to which the signal handler writes one byte for every signal
received). This is rather awkward and may potentially even block
if we receive more signals than the kernel's pipe buffer.

This patch replaces all of that with ppoll, which was designed
for this purpose.

It also removes the SA_RESTART flag from all installed signal
handlers, because otherwise the ppoll call would just be restarted
after handling eg a SIGCHLD.

Signed-off-by: Olaf Kirch <okir@suse.de>
2009-01-20 12:49:20 +01:00
..
lib libudev: use 4096 bytes buffer for attribute reading 2009-01-14 21:54:31 +01:00
.gitignore
Makefile.am
test-udev.c
udev-event.c cleanup old names before creating the new names 2009-01-16 21:15:53 +01:00
udev-node.c remove name from index if the node name has changed 2009-01-16 21:14:13 +01:00
udev-rules.c udevadm: test - remove --force option 2009-01-15 20:20:16 +01:00
udev-selinux.c
udev-sysdeps.h
udev-util.c "'/sbin/modprobe abnormal' exit" - also print program options 2008-12-20 00:03:53 +01:00
udev.h udevadm: test - remove --force option 2009-01-15 20:20:16 +01:00
udev.xml man: typo fixes 2009-01-16 21:32:25 +01:00
udevadm-control.c
udevadm-info.c udevadm: s/udevinfo/udevadm info/ 2009-01-05 12:28:09 +01:00
udevadm-monitor.c
udevadm-settle.c udevadm: settle - allow --timeout=0 and --quiet 2008-12-08 16:48:54 +01:00
udevadm-test.c udevadm: test - remove --force option 2009-01-15 20:20:16 +01:00
udevadm-trigger.c
udevadm.c remove stray initializer 2009-01-16 21:33:33 +01:00
udevadm.xml man: typo fixes 2009-01-16 21:32:25 +01:00
udevd.c udevd: use ppoll instead of signal pipes 2009-01-20 12:49:20 +01:00
udevd.xml