Stephen C. Tweedie wrote:
> > Just to be clear, the "original socket" here is the listening socket,
> > right? Since newfd may already have been closed, presumably it's lost
> > all of its properties, and can't be the "original socket".
>
> Yes. newfd will be treated as the second arg of dup2(), and any
> existing file on that fd will be closed automatically if the fd is
> already in use.
Oh right, I had misunderstood. We are all in violent agreement ;-)
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:30 EST