Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpclient Always use kqueue for BSDs in librumpclient



details:   https://anonhg.NetBSD.org/src/rev/5b5cd4d01909
branches:  trunk
changeset: 805027:5b5cd4d01909
user:      justin <justin%NetBSD.org@localhost>
date:      Sat Dec 13 17:18:55 2014 +0000

description:
Always use kqueue for BSDs in librumpclient

Tested now on the others

diffstat:

 lib/librumpclient/rumpclient.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r d396b305a47d -r 5b5cd4d01909 lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c    Sat Dec 13 16:11:01 2014 +0000
+++ b/lib/librumpclient/rumpclient.c    Sat Dec 13 17:18:55 2014 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpclient.c,v 1.63 2014/12/08 01:10:07 justin Exp $  */
+/*      $NetBSD: rumpclient.c,v 1.64 2014/12/13 17:18:55 justin Exp $  */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -32,8 +32,7 @@
 #include <rump/rumpuser_port.h>
 
 /*
- * We use kqueue on NetBSD and FreeBSD, poll elsewhere.  We could
- * use kqueue on other BSD's too, but I haven't tested those.  We
+ * We use kqueue on the BSDs, poll elsewhere.  We
  * want to use kqueue because it will give us the ability to get signal
  * notifications but defer their handling to a stage where we do not
  * hold the communication lock.  Taking a signal while holding on to
@@ -43,14 +42,15 @@
  * response from the server.
  */
 
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || \
+    defined(__DragonFly__) || defined(__OpenBSD__)
 #define USE_KQUEUE
 #endif
 #if defined(__linux__) && !defined(__ANDROID__)
 #define USE_SIGNALFD
 #endif
 
-__RCSID("$NetBSD: rumpclient.c,v 1.63 2014/12/08 01:10:07 justin Exp $");
+__RCSID("$NetBSD: rumpclient.c,v 1.64 2014/12/13 17:18:55 justin Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>



Home | Main Index | Thread Index | Old Index