Kqueue and threading
Slawa Olhovchenkov
slw at zxy.spb.ru
Mon Oct 3 18:09:22 UTC 2016
On Mon, Oct 03, 2016 at 12:48:03PM -0500, Eric Badger wrote:
> Sharing a kqueue between threads of a process works. Are the workers
Can you comment PR207261?
> created using rfork without RFFDG as suggested in the manpage? I've
> never had reason to do this, but a quick test seems to indicate that it
> works as advertised. A normal fork closes the kqueue file descriptor. If
> you suspect that's what's happening, you might run "procstat -f {worker
> pid}" to see if file descriptors with a "k" (kqueue) in the "T" (type)
> column appear (if not, they were presumably closed on the fork).
>
> Eric
>
More information about the freebsd-hackers
mailing list