epoll and fork()

From: Ben
Date: Tue Mar 02 2004 - 07:33:22 EST


Is there a defined behaviour for what happens when a process with an epoll
fd forks?

I've an app that inherits an epoll fd from its parent, and then
unregisters some file descriptors from the epoll set. This seems to have
the nasty side effect of unregistering the same file descriptors from the
parent process as well. Surely this can't be right?

This is on 2.6.2.


Ben
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/