From owner-freebsd-stable Fri Jul 6 1:11:50 2001 Delivered-To: freebsd-stable@freebsd.org Received: from warez.scriptkiddie.org (uswest-dsl-142-38.cortland.com [209.162.142.38]) by hub.freebsd.org (Postfix) with ESMTP id ECB5537B405 for ; Fri, 6 Jul 2001 01:11:46 -0700 (PDT) (envelope-from lamont@scriptkiddie.org) Received: from warez.scriptkiddie.org (warez.scriptkiddie.org [209.162.142.38]) by warez.scriptkiddie.org (Postfix) with ESMTP id 27D8262D01 for ; Fri, 6 Jul 2001 01:11:46 -0700 (PDT) Date: Fri, 6 Jul 2001 01:11:46 -0700 (PDT) From: Lamont Granquist To: Subject: bpf/libpcap and pthreads In-Reply-To: <200107060551.f665pJj17669@fedde.littleton.co.us> Message-ID: <20010706010251.W94746-100000@warez.scriptkiddie.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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?) i'm probably going to try putting some debugging output into the kernel, but don't know how far i'll be able to get in tracking this down... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message