Skip to content
Commit f2664d65 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov
Browse files

pipe: don't reopen pipes via /proc, if it's not required



The system call open can add O_LARGEFILE.

A point is reopend for unsharing a file descriptor. So here are two
types of points. One is returned by pipe() and all other ones are
got via opening /proc/PID/fd.

Currently I know only one difference between these types, it's
O_LARGEFILE.

Signed-off-by: default avatarAndrey Vagin <avagin@openvz.org>
Tested-by: default avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 74053de7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment