]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
authorelad <elad@NetBSD.org>
Sat, 7 Oct 2006 17:27:57 +0000 (17:27 +0000)
committerelad <elad@NetBSD.org>
Sat, 7 Oct 2006 17:27:57 +0000 (17:27 +0000)
Adapted to -current by myself, thanks for the patch!

hunt/huntd/driver.c

index 9deaa5253d90820af9fc22a08f8944f3d86dbff7..515e4d6d01e6b5efc104466ba2236226810af21d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: driver.c,v 1.11 2006/05/09 20:18:06 mrg Exp $  */
+/*     $NetBSD: driver.c,v 1.12 2006/10/07 17:27:57 elad Exp $ */
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.11 2006/05/09 20:18:06 mrg Exp $");
+__RCSID("$NetBSD: driver.c,v 1.12 2006/10/07 17:27:57 elad Exp $");
 #endif /* not lint */
 
 # include      <sys/ioctl.h>
@@ -135,9 +135,9 @@ again:
                {
                        if (errno != EINTR)
 # ifdef LOG
-                               syslog(LOG_WARNING, "select: %m");
+                               syslog(LOG_WARNING, "poll: %m");
 # else
-                               warn("select");
+                               warn("poll");
 # endif
                        errno = 0;
                }
@@ -378,7 +378,7 @@ init()
 # endif
 
        /*
-        * Initialize minimal select mask
+        * Initialize minimal poll mask
         */
        fdset[0].fd = Socket;
        fdset[0].events = POLLIN;