Module Name: src
Committed By: justin
Date: Sat Dec 13 17:18:55 UTC 2014
Modified Files:
src/lib/librumpclient: rumpclient.c
Log Message:
Always use kqueue for BSDs in librumpclient
Tested now on the others
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/lib/librumpclient/rumpclient.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpclient/rumpclient.c
diff -u src/lib/librumpclient/rumpclient.c:1.63 src/lib/librumpclient/rumpclient.c:1.64
--- src/lib/librumpclient/rumpclient.c:1.63 Mon Dec 8 01:10:07 2014
+++ src/lib/librumpclient/rumpclient.c Sat Dec 13 17:18:55 2014
@@ -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>