diff options
author | Tom Gundersen <teg@jklm.no> | 2014-09-12 16:22:44 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-09-16 12:12:56 +0200 |
commit | 5c67cf2774a8b964f4d7cd92a4c447da81ac6087 (patch) | |
tree | 9637a8deaec590dfb5218dfd2a3a85251d1f6a35 /src/udev | |
parent | 959d654105c1303d0c475868a51834db2f7b6099 (diff) |
udev: don't close std{in,out,err}
Rather than printing debug output to stderr and redirecting this to /dev/null when not wanted,
use the correct log_*() function in the first place.
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udevd.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 8922ff9f8e..e90d9dacb0 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1221,18 +1221,6 @@ int main(int argc, char *argv[]) { log_info("starting version " VERSION "\n"); - if (!arg_debug) { - int fd; - - fd = open("/dev/null", O_RDWR); - if (fd >= 0) { - dup2(fd, STDIN_FILENO); - dup2(fd, STDOUT_FILENO); - dup2(fd, STDERR_FILENO); - close(fd); - } - } - fd_inotify = udev_watch_init(udev); if (fd_inotify < 0) { log_error("error initializing inotify"); |