summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c12
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");