]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/udev/udevd.c
udevd: initialize fds to -1 and close them before exiting
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Jan 2016 02:02:56 +0000 (21:02 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 18 Jan 2016 20:21:28 +0000 (15:21 -0500)
commite5d7bce12d95b38e592a2561b49a42d033cc82c1
treec6903f948a9c8e16f001f9a31c1de88ababf5ab6
parentff82c36c792a23a03994af2ae40cbd441e128bb4
udevd: initialize fds to -1 and close them before exiting

Little change in practice, because the program will exit soon
afterwards, but the standard style of closing all fds is now followed.
Also gets rid of gcc warning about fd_ctrl and fd_uevent being
unitialized.
src/udev/udevd.c