Date: Mon, 9 Sep 2002 21:50:03 -0700 (PDT) From: alo@louko.com (Antti Louko) To: freebsd-bugs@FreeBSD.org Subject: Re: misc/41331: Pthread library open sets O_NONBLOCK flag and causes unnecessary EAGAIN errors especially with /dev/stdout. Message-ID: <200209100450.g8A4o3Lh001455@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209100450.g8A4o3Lh001455>