Date: Mon, 3 Oct 2016 21:09:13 +0300 From: Slawa Olhovchenkov <slw@zxy.spb.ru> To: Eric Badger <badger@FreeBSD.org> Cc: freebsd-hackers@freebsd.org, wjw@digiware.nl Subject: Re: Kqueue and threading Message-ID: <20161003180913.GP54003@zxy.spb.ru> In-Reply-To: <4209b8d4-6674-a51d-dceb-81c3ecd179c2@FreeBSD.org> References: <111e0c35-7a4b-b6c7-ef1d-1a0d85112e61@digiware.nl> <4209b8d4-6674-a51d-dceb-81c3ecd179c2@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161003180913.GP54003>