From owner-freebsd-bugs Mon Sep 9 21:50: 8 2002 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 A321C37B400 for ; Mon, 9 Sep 2002 21:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 612F343E6A for ; Mon, 9 Sep 2002 21:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8A4o3JU001459 for ; Mon, 9 Sep 2002 21:50:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8A4o3Lh001455; Mon, 9 Sep 2002 21:50:03 -0700 (PDT) Date: Mon, 9 Sep 2002 21:50:03 -0700 (PDT) Message-Id: <200209100450.g8A4o3Lh001455@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: alo@louko.com (Antti Louko) Subject: Re: misc/41331: Pthread library open sets O_NONBLOCK flag and causes unnecessary EAGAIN errors especially with /dev/stdout. Reply-To: alo@louko.com (Antti Louko) 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 The following reply was made to PR misc/41331; it has been noted by GNATS. From: alo@louko.com (Antti Louko) To: archie@packetdesign.com Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/41331: Pthread library open sets O_NONBLOCK flag and causes unnecessary EAGAIN errors especially with /dev/stdout. Date: 10 Sep 2002 04:45:11 -0000 I just tried it in 4.6 Release and 4.6.2 and it still occurs. This bug makes it for example quite impossible to use /dev/stdout in python scripts if python has been compiled with threads support. Are you sure that you compiled the writer.c with: gcc -pthread -o writer writer.c What happens is: alo@toivoton 123: ./writer | sh reader.sh write, errno: 35 Total bytes written 16384 1+0 records in 1+0 records out 1024 bytes transferred in 0.000032 secs (31932842 bytes/sec) 1+0 records in 1+0 records out 1024 bytes transferred in 0.000035 secs (29217465 bytes/sec) . . Repetead until: . 0+0 records in 0+0 records out 0 bytes transferred in 0.000018 secs (0 bytes/sec) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message