lkml.org 
[lkml]   [2003]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFD] Combined fork-exec syscall.
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.057 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site