Libevent error 'Bad File Descriptor'
Anatoly Vorobey
mellon@pobox.com
Thu, 23 Oct 2003 00:35:40 +0200
On Wed, Oct 22, 2003 at 03:36:16PM -0700, Brion Vibber wrote:
> On Wednesday, Oct 22, 2003, at 15:26 US/Pacific, Anatoly Vorobey wrote:
> >I don't object - just frustrated because I don't understand why this
> >is happening and why moving the code solves it. Did you figure it out?
>
> Hmm... from the man page for kqueue(2):
>
> The kqueue() system call creates a new kernel event queue and
> returns a
> descriptor. The queue is not inherited by a child created with
> fork(2).
Thanks!
I'm not used to descriptors not surviving fork() ;)
It didn't occur to me that the kqueue descriptor may be special in
that regard.
--
avva