From owner-freebsd-bugs@FreeBSD.ORG Wed Jun 7 12:06:02 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A9BA16A5D0 for ; Wed, 7 Jun 2006 11:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F9E143D48 for ; Wed, 7 Jun 2006 11:00:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k57B0cb6013842 for ; Wed, 7 Jun 2006 11:00:38 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k57B0cBt013841; Wed, 7 Jun 2006 11:00:38 GMT (envelope-from gnats) Date: Wed, 7 Jun 2006 11:00:38 GMT Message-Id: <200606071100.k57B0cBt013841@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gleb Smirnoff Cc: Subject: Re: kern/97921: close() socket deadlocks blocked threads X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gleb Smirnoff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 12:06:05 -0000 The following reply was made to PR kern/97921; it has been noted by GNATS. From: Gleb Smirnoff To: Kurt Miller Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/97921: close() socket deadlocks blocked threads Date: Wed, 7 Jun 2006 14:40:55 +0400 I have run this testcase on Linux 2.6.16.19. The program blocks, but if suspended/resumed it returns. recvfrom() returns -1, errno is EBADF. I think that we should not block (like Solaris), and return EBADF (like Linux). -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE