tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kqueue/fork/kevent



Hi

On 26/06/2017 13:26, Emmanuel Dreyfus wrote:
> After upgrading to 7.1, I had to fix the same bug in dhcrelay
> and parpd (from pkgsrc/net/parpd). The two programs called kqueue,
> fork and the kevent. And since kqueue(2) says "The queue is not 
> inherited by a child created with fork(2)", the program did not
> receive requests. 
> 
> A possible workaround was to avoid the fork by running in the 
> foreground. But what surprises me is that the two worked in netbsd-6.
> Did kqueue/fork/kevent behavior changed on purpose in the meatime? 
> If it does, would it make sense to revert to the previous behavior,
> where queue were inherited? I do not know how many software out of
> there will be hit buy the same problem...

AFAIK kqueue has always had that limitation.
I rarely run parpd as a forked process so I kinda forgot to add that
code to regenerate the queue after forking.

Thanks for the patch :)

Roy


Home | Main Index | Thread Index | Old Index