Subject: New fdalloc -- bug?
To: None <tech-kern@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-kern
Date: 11/01/2003 18:49:26
sys/kern/kern_descrip.c contains this code (function fdcopy):

        /*
	 * kq descriptors cannot be copied.
	 */
	if (newfdp->fd_knlistsize != -1) {
		fpp = newfdp->fd_ofiles;
		for (i = newfdp->fd_lastfile; i-- >= 0; fpp++) {
			if (*fpp != NULL && (*fpp)->f_type == DTYPE_KQUEUE)
				*fpp = NULL;
			}

Why is this brute-force close not done on the fd_XXmap?
-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)