Mark Mielke wrote:
> If the argument is that vfork(), exec()
> must scan the file descriptors to determine which ones have FD_CLOEXEC set,
> then perhaps the answer is to index the FD_CLOEXEC bits of file descriptors?
More precisely, to index the file descriptors whih do _not_ have the
FD_CLOEXEC bit set - those are the file descriptors to copy into the
new process.
A more relevant optimisation is to make searching for new file
descriptors O(1) in accept(), yet that was discussed years ago and it
was decided it wasn't worth doing.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:28 EST