• Andrey Ryabinin's avatar
    sk-unix: ignore shutdown mismatch in unix sockets · ed4db723
    Andrey Ryabinin authored
    Usually unix stream sockets have consistent shutdown state
    (if one end shutdown for read than other end will be shut down for write).
    However sometimes it's possible to have stream sockets with mismatched
    shutdown state. This happens if we connect() already shut down socket
    (see upcoming sockets03.c test for example).
    
    On read()/write() kernel always checks shutdown state on both ends, so
    from userspace POV sockets with mismatched shutdown state behave the same
    way as with matched state. So I think that we can just ignore shutdown
    mismatch during dump, and just restore sockets with matching shutdown
    state. Process should not see the differences.
    Signed-off-by: 's avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
    Acked-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    ed4db723
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...