Date: Tue, 27 Aug 2002 00:41:21 +0100 From: Ian Dowse <iedowse@maths.tcd.ie> To: Dominic Marks <dominic_marks@btinternet.com> Cc: freebsd-hackers@freebsd.org Subject: Re: kevent and pipes interaction on 4.6-STABLE Message-ID: <200208270041.aa72777@salmon.maths.tcd.ie> In-Reply-To: Your message of "Mon, 26 Aug 2002 23:58:51 BST." <20020826225851.GA93947@gallium>
next in thread | previous in thread | raw e-mail | index | archive | help
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 clear what is going on. You don't want to hide the global `kq' behind an uninitialised local variable of the same name. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200208270041.aa72777>