chiark / gitweb /
udev: simplify event_queue_update() and add debug logging
authorTom Gundersen <teg@jklm.no>
Mon, 9 Mar 2015 21:19:52 +0000 (22:19 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 9 Mar 2015 21:38:51 +0000 (22:38 +0100)
commitdfc4b6acf088f71f717fce8866a5841091219fa5
tree16cfc85670a590d47f0b6031e0eb0e61549a72e8
parent7432b24b8357d913943580b442ffe7040e610f9e
udev: simplify event_queue_update() and add debug logging

This essentially replaces
  open("/run/udev/queue", O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444)
with
  open("/run/udev/queue", O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0644),
which is ok for our purposes.
src/udev/udevd.c