From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: cmogstored-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C6CE91F5AF; Mon, 9 Mar 2015 20:35:43 +0000 (UTC) Date: Mon, 9 Mar 2015 20:35:43 +0000 From: Eric Wong To: Mykola Golub Cc: cmogstored-public@bogomips.org Subject: Re: FreeBSD: sleeper using ppoll does not sleep forever Message-ID: <20150309203543.GA18791@dcvr.yhbt.net> References: <20150309151851.GC2195@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150309151851.GC2195@gmail.com> List-Id: Thanks, there's at least two problems in cmogstored here: 1) The assertion could trigger on any OS due to the lack of retry on EINTR. 2) ppoll is non-POSIX, and is a cancellation point in GNU libc, but perhaps not the FreeBSD libc based on your bug report. We'll switch to pselect which POSIX as a cancellation point. I suggest FreeBSD developers make ppoll a thread cancellation point for GNU/Linux compatibility. So two patches coming in reply to this email...