]> Zhao Yanbai Git Server - minix.git/commit
UDS: check connection state better 79/379/4
authorThomas Veerman <thomas@minix3.org>
Tue, 5 Mar 2013 10:10:41 +0000 (10:10 +0000)
committerThomas Veerman <thomas@minix3.org>
Thu, 7 Mar 2013 10:49:21 +0000 (10:49 +0000)
commit1ba514e19c7720fc8642c7f0b1b00aa2f7cf6052
tree5558d57f4dfbfea7c27c485ddc356529767ef1e7
parent449ed1783384122c32cb8b80fef7c5f043d7df22
UDS: check connection state better

Select(2)ing on UNIX domain sockets was not working properly because
connection state wasn't properly checked/propagated. So selecting for
a read descriptor and closing the write descriptor on the other end
didn't cause select to return. Similarly, read(2) kept blocking while
it should return an error when the other end closed the socket.

Change-Id: I3f5bb52af1a6b03313d508bf915fc838357ba450
servers/pfs/dev_uds.c
servers/pfs/uds.c
test/test56.c