This commit modifies the Unix domain local socket design. Local sockets are...
This commit modifies the Unix domain local socket design. Local sockets are built on top of pipes. The Local socket implementation maintained file descriptors to interrupt with the pipes. File descriptors have the bad property that they are valid only while running on the thread within the task that created the local socket. As a policy, all internal OS implementations must use "detached" files which are valid in any context and do not depend on the validity of a file descriptor at any point in time. This commit converts the usage of file descriptors to detached files throughout the local socket implementation. Squashed commit of the following: net/local: Finish change to eliminate use of file descriptors. net/local: A little more of the conversion. net/local: Beginning of chnages to eliminate use of file descriptors in the local socket implementeation. poll() will be a problem.
parent
e5d7e4a1
Please register or sign in to comment