diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-07-14 22:43:32 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-14 22:43:32 -0700 |
commit | 2da59918e26837f305131cfac9c0f1b3b42bb8ae (patch) | |
tree | a6c183dfbb0d6f929dbf09167d8bbc3d92897e53 /net/tipc/Makefile | |
parent | 8642bd9e04f51980b2b6293c66acf7e388c9a6e7 (diff) | |
download | linux-2da59918e26837f305131cfac9c0f1b3b42bb8ae.tar.bz2 |
tipc: Fix race condition that could cause accept() to fail
This patch ensurs that accept() returns successfully even when
the newly created socket is immediately disconnected by its peer.
Previously, accept() would fail if it was unable to pass back
the optional address info for the socket's peer before the
socket became disconnected; TIPC now allows accept() to gather
peer address information after disconnection. As a bonus, the
revised code accesses the socket's port more efficiently, without
the overhead incurred by a reference table lookup.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/Makefile')
0 files changed, 0 insertions, 0 deletions