From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 069F0211B4; Thu, 29 Nov 2018 19:35:57 +0000 (UTC) From: Eric Wong To: cmogstored-public@bogomips.org Cc: Eric Wong Subject: [PATCH] selfwake: enable self-pipe with kqueue Date: Thu, 29 Nov 2018 19:35:55 +0000 Message-Id: <20181129193555.11622-1-e@80x24.org> List-Id: This was causing my libkqueue build to stall on Linux where epoll_pwait exists. We actually favor kqueue in the code for testing purposes, so we need to enable the self-wake pipe when using libkqueue if epoll_pwait is detected. --- selfwake.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfwake.h b/selfwake.h index c147ccb..0dc0af7 100644 --- a/selfwake.h +++ b/selfwake.h @@ -2,7 +2,9 @@ * Copyright (C) 2012-2016 all contributors * License: GPLv3 or later (see COPYING for details) */ -#if (defined(HAVE_EPOLL_WAIT) && defined(HAVE_PPOLL)) \ +#if defined(HAVE_KQUEUE) +# define MOG_SELFPIPE 1 +#elif (defined(HAVE_EPOLL_WAIT) && defined(HAVE_PPOLL)) \ || defined(HAVE_EPOLL_PWAIT) # define MOG_SELFPIPE 0 #else -- EW