Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D236819C82 for ; Wed, 20 Apr 2016 20:21:11 +0000 (UTC) Received: (qmail 48622 invoked by uid 500); 20 Apr 2016 20:21:11 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 48586 invoked by uid 500); 20 Apr 2016 20:21:11 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 48575 invoked by uid 99); 20 Apr 2016 20:21:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 20:21:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 12B85C0214 for ; Wed, 20 Apr 2016 20:21:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.285 X-Spam-Level: ** X-Spam-Status: No, score=2.285 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zu17AZZua7yn for ; Wed, 20 Apr 2016 20:21:09 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 931665F3F0 for ; Wed, 20 Apr 2016 20:21:08 +0000 (UTC) Received: from mjim.nabble.com (unknown [162.253.133.84]) by mwork.nabble.com (Postfix) with ESMTP id DEF7D2385291D for ; Wed, 20 Apr 2016 13:21:07 -0700 (PDT) Date: Wed, 20 Apr 2016 13:21:07 -0700 (MST) From: Adel Boutros To: users@qpid.apache.org Message-ID: <1461183667674-7642395.post@n2.nabble.com> In-Reply-To: References: <570FFC2F.3080609@redhat.com> <1461083858125-7642306.post@n2.nabble.com> <1461086743.3449.47.camel@redhat.com> <1461164580740-7642368.post@n2.nabble.com> <1461173471.3449.54.camel@redhat.com> Subject: Re: [Qpid Dispatcher] Runtime behavior on SunOS MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit After checking the help of pipe, the behavior is different between Solaris and Linux. On Linux, pipe returns 2 file descriptors: *one *for reading and *one *for writing. On Solaris, pipe returns 2 file descriptors: *both *are for reading and writing. So in the case of Solaris, the POLLOUT is valid as there is no data to read but the file descriptor is ready to write. Linux pipe ref: http://linux.die.net/man/2/pipe Solaris pipe ref: https://docs.oracle.com/cd/E53394_01/html/E54765/pipe-2.html I think the test code which calls pipe should make the fd[0] read-only to make the test work. PS: The *revents *for the "write file descriptor" is actually POLLOUT on both Solaris and Linux which makes sense with the explanation I just provided. -- View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-Dispatcher-Runtime-behavior-on-SunOS-tp7641941p7642395.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org