• Andrey Vagin's avatar
    pipe: change calculation of pipes users · c53972cd
    Andrey Vagin authored
    This patch removed stange logic about minusers.
    Now we calculate foreign users only.
    
    The main idea of this patch, that we bind a pipe ends to correct
    descriptos immediately.
    
    When a process X creates a pipe, we have two cases:
    1. Both ends belongs to this process. It's simple, we bind both ends
       to their descriptors and we go further.
    2. Only one end of a pipe belongs to this process. In this case we are
       waiting all foreign users and we go futher.
    In second case we should wait, because a end which doesn't belong to
    this process occupies a file descriptor, which may be used by another
    pipe.
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Acked-by: 's avatarPavel Emelianov <xemul@parallels.com>
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    c53972cd
Name
Last commit
Last update
include Loading commit data...
kernel Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
INTERNALS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
TODO Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
gen-offsets.sh Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
restorer.c Loading commit data...
seize.c Loading commit data...
util.c Loading commit data...