From owner-freebsd-stable Fri Jul 6 10:42:20 2001 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 88C6B37B403 for ; Fri, 6 Jul 2001 10:42:12 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.1) with ESMTP id f66Hg9D62542; Fri, 6 Jul 2001 10:42:09 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.3/8.11.0) id f66Hg8J16085; Fri, 6 Jul 2001 10:42:08 -0700 (PDT) (envelope-from jdp) Date: Fri, 6 Jul 2001 10:42:08 -0700 (PDT) Message-Id: <200107061742.f66Hg8J16085@vashon.polstra.com> To: stable@freebsd.org From: John Polstra Cc: jdp@wall.polstra.com Subject: Re: bpf/libpcap and pthreads In-Reply-To: <200107061618.f66GI5L15965@vashon.polstra.com> References: <20010706010251.W94746-100000@warez.scriptkiddie.org> <200107061618.f66GI5L15965@vashon.polstra.com> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <200107061618.f66GI5L15965@vashon.polstra.com>, John Polstra wrote: > In article <20010706010251.W94746-100000@warez.scriptkiddie.org>, > Lamont Granquist wrote: > > > > i've got a program where i'm trying to use libpcap in a posix thread and > > the thread is failing to get any data back. i've tried writing a sample > > program which was non-threaded and then simply linking with -pthread and > > linking that way seems to interfere with bpf/libpcap. i'm running on > > 4.3-STABLE and tried it on a build which was a few months old, and just > > tried again with a cvsup from a few hours ago (Jul 5 2001 22:00:00 or > > so). > > > > is there a known incompatibility between bpf/libpcap and pthreads? anyone > > have any notions of what is going wrong here? (is it possible that bpf is > > having problems waking up the thread waiting on i/o?) > > This sounds like a bug I fixed in -current some time ago. I thought > I merged the fix into -stable, but maybe not. I'll check later on > today. Yes, I did merge the fix into -stable January 5, 2001. It is in "src/sys/net/bpf.c" revision 1.59.2.5. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message