From owner-freebsd-bugs Thu Feb 7 10:48:46 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by hub.freebsd.org (Postfix) with ESMTP id 0274637B423; Thu, 7 Feb 2002 10:48:40 -0800 (PST) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.6/8.11.6) with ESMTP id g17Imcp6308871; Thu, 7 Feb 2002 21:48:38 +0300 (MSK) Date: Thu, 7 Feb 2002 21:48:38 +0300 (MSK) From: Maxim Konovalov To: dwmalone@FreeBSD.ORG Cc: yxpan@yahoo.com, Subject: Re: i386/34536: accept() blocks other threads In-Reply-To: <200202071701.g17H1Zt83698@freefall.freebsd.org> Message-ID: <20020207213918.V85900-100000@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello David, On 09:01-0800, Feb 7, 2002, dwmalone@FreeBSD.ORG wrote: > Synopsis: accept() blocks other threads > > State-Changed-From-To: closed->open > State-Changed-By: dwmalone > State-Changed-When: Thu Feb 7 08:48:18 PST 2002 > State-Changed-Why: > I think there is a little more to this PR... > > I've done a little more experimentation, and I've found that the > problem is the fact that your process forks. The must set up the > descriptors correctly, but things are subtly different in the child. I did not reproduce the problem on my -current. Will try on -stable tomorrow. > I don't know how posix threads and fork are supposed to interact. AFAIU there are no any interactions between pthread(3) and fork(2) in the code. Main thread forks once and after that creates srv() threads. > Could someone who does know about posix threads say is expected if > you fork? Should threading work in the child? Yes, it should. -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message