From owner-freebsd-ports Sat Apr 28 0:17:44 2001 Delivered-To: freebsd-ports@freebsd.org Received: from femail2.sdc1.sfba.home.com (femail2.sdc1.sfba.home.com [24.0.95.82]) by hub.freebsd.org (Postfix) with ESMTP id 5D3D737B424 for ; Sat, 28 Apr 2001 00:17:42 -0700 (PDT) (envelope-from lance@verniernetworks.com) Received: from taz.verniernetworks.com ([24.19.221.239]) by femail2.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010428071713.MVFI28160.femail2.sdc1.sfba.home.com@taz.verniernetworks.com>; Sat, 28 Apr 2001 00:17:13 -0700 Message-Id: <4.3.2.7.2.20010427235013.00a9f100@mail> X-Sender: lance@127.0.0.1 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 28 Apr 2001 00:17:41 -0700 To: rse@engelschall.com From: Lance Uyehara Subject: FreeBSD Port: pth-1.4.0 Cc: ports@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Help! I'm using pth_poll() to check if a socket is still valid. I am controlling the client side and the server side in my test, so I know the connection is still open. So I do: struct pollfd myfd; int poll_ret; myfd.fd = sock; myfd.events = POLLIN; myfd.revents = 0; poll_ret = pth_poll(&myfd, 1, 0); I get: poll_ret = 0 myfd.fd = sock myfd.events = POLLIN myfd.revents = 0 I actually get the same results if I use 1 or 0 instead of the passed in socket. What am I doing wrong? Any help is appreciated. Thanks. -Lance To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message