devd - select only with a read set
authorSamuel J. Greear <sjg@thesjg.com>
Thu, 29 Jul 2010 04:26:10 +0000 (04:26 +0000)
committerSamuel J. Greear <sjg@thesjg.com>
Thu, 29 Jul 2010 04:26:10 +0000 (04:26 +0000)
sbin/devd/devd.cc

index 4da7b6b..5c9f024 100644 (file)
@@ -739,7 +739,7 @@ event_loop(void)
                        tv.tv_usec = 0;
                        FD_ZERO(&fds);
                        FD_SET(fd, &fds);
-                       rv = select(fd + 1, &fds, &fds, &fds, &tv);
+                       rv = select(fd + 1, &fds, NULL, NULL, &tv);
                        // No events -> we've processed all pending events
                        if (rv == 0) {
                                if (Dflag)