From owner-freebsd-hackers Sun Jul 6 22:36:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA25619 for hackers-outgoing; Sun, 6 Jul 1997 22:36:42 -0700 (PDT) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA25612 for ; Sun, 6 Jul 1997 22:36:33 -0700 (PDT) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.5/8.8.5) id WAA11292; Sun, 6 Jul 1997 22:37:06 -0700 (PDT) Message-ID: <19970706223705.64320@hydrogen.nike.efn.org> Date: Sun, 6 Jul 1997 22:37:05 -0700 From: John-Mark Gurney To: Wes Santee Cc: hackers@FreeBSD.ORG Subject: Re: Is there a thread-happy recv()? References: <199707070459.VAA05316@kryten.bogon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199707070459.VAA05316@kryten.bogon.net>; from Wes Santee on Sun, Jul 06, 1997 at 09:59:58PM -0700 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Wes Santee scribbled this message on Jul 6: > Hi all. I noticed in a chunk of code I'm writing that a blocking call > to recv() is putting the entire process to sleep such that even the don't use recv, use read instead... the reason recv isn't wrapped is that wrapping it is pointless, and may be removed in the future (from man page) this should fix the problem... ttyl... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD