Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
On Tue, Aug 27, 2002 at 12:41:21AM +0100, Ian Dowse wrote: > In message <20020826225851.GA93947@gallium>, Dominic Marks writes: > >+static int kq = -1; > >+int kq, rv, idx; > >kevent(0x3,0xbfbfedbc,0x1,0x0,0x0,0x0) = 0 (0x0) > >kevent(0x809abc0,0x0,0x0,0xbfbfede0,0x8,0x0) ERR#9 '

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Terry Lambert
Dominic Marks wrote: > I'm attempting the junior userland hacker task of replacing select in > make with kevent. I have written the code and it is, as far as I know > correct. > > The problem is that this code doesn't work. An example being the > following: The problem is that kqueue is known to

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Ian Dowse
In message <20020826225851.GA93947@gallium>, Dominic Marks writes: >+static int kq = -1; >+int kq, rv, idx; >kevent(0x3,0xbfbfedbc,0x1,0x0,0x0,0x0) = 0 (0x0) >kevent(0x809abc0,0x0,0x0,0xbfbfede0,0x8,0x0) ERR#9 'Bad file descriptor' Look at the above 4 lines, and it is pretty cle

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
Hey, The best time to find and fix problems in code is just after you've submitted it to a public forum. It is also the worst time. :-) 1. Removed pointless traversal on kevent structures in Job_CatchOutput which I was doing before. Now all kevent objects store the address of their assigned job

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
On Mon, Aug 26, 2002 at 11:17:27PM +0100, Dominic Marks wrote: One thing I forgot to mention, but which I don't think (hope) matters is that I'm building make from checked out -CURRENT source on my -STABLE workstation. That's why the diff is against -CURRENT and the subject mentions 4.6-STABLE.

kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
Hey, I'm attempting the junior userland hacker task of replacing select in make with kevent. I have written the code and it is, as far as I know correct. The problem is that this code doesn't work. An example being the following: > cd /usr/src > /usr/obj/usr/home/dom/code/src/usr.bin/make/make