Re: Background processes setting O_NONBLOCK on ttys

2005-01-13 Thread Stephen McKay
On Thursday, 13th January 2005, Jilles Tjoelker wrote: >POSIX states that the O_NONBLOCK flag is per open file description. File >descriptors created with dup(2), fork(2) or similar methods share the >same open file description, while new descriptors created with open(2) >do not. Can you quote ch

Re: Background processes setting O_NONBLOCK on ttys

2005-01-13 Thread Jilles Tjoelker
On Thu, Jan 13, 2005 at 06:47:21PM +1100, Peter Jeremy wrote: > On Wed, 2005-Jan-12 23:54:38 +1000, Stephen McKay wrote: > >c) Make O_NONBLOCK be per file descriptor (like FD_CLOEXEC). Thus, > >descriptors produced from dup() (for example) would have their own O_NONBLOCK > >flag, just as two descr

Re: Background processes setting O_NONBLOCK on ttys

2005-01-13 Thread Stephen McKay
On Thursday, 13th January 2005, Peter Jeremy wrote: >On Wed, 2005-Jan-12 23:54:38 +1000, Stephen McKay wrote: >>a) Rewrite file descriptor handling in libc_r so it does not set O_NONBLOCK >>on tty file descriptors unless it is in the foreground. I don't know how >>hard this would be, or whether i

Re: Background processes setting O_NONBLOCK on ttys

2005-01-12 Thread Peter Jeremy
On Wed, 2005-Jan-12 23:54:38 +1000, Stephen McKay wrote: >a) Rewrite file descriptor handling in libc_r so it does not set O_NONBLOCK >on tty file descriptors unless it is in the foreground. I don't know how >hard this would be, or whether it even applies to -current with its profusion >of threadi

Background processes setting O_NONBLOCK on ttys

2005-01-12 Thread Stephen McKay
Hi! I'm running FreeBSD 4.11-RC2 on an Athlon 2100+ with 768MB of ram and software mirrored 160GB Seagate disks. All pretty straightforward so far. I'm currently a couple of DAYS into compiling Open Office 1.1.3, and while I can tell you all sorts of stories of trouble and woe, I want to concent

Re: Background processes setting O_NONBLOCK on ttys

2005-01-12 Thread Stephen McKay
On Wednesday, 12th January 2005, Stephen McKay wrote: >[Problems during Open Office compilation on FreeBSD 4.11-RC2] >After some tracing, I have worked out that the tty is being alternately >set to nonblocking and back to normal hundreds of times during the compilation >of Open Office, and that's

Background processes setting O_NONBLOCK on ttys

2005-01-12 Thread Stephen McKay
[You may see this message twice as it got stuck in the ^$&#@ moderation queue.] Hi! I'm running FreeBSD 4.11-RC2 on an Athlon 2100+ with 768MB of ram and software mirrored 160GB Seagate disks. All pretty straightforward so far. I'm currently a couple of DAYS into compiling Open Office 1.1.3, an