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

files: use PROC_SELF when a process accesses its /proc/PID



If a process is executed in another pidns, a /proc/PID doesn't link with
the proper process.

This patch fixes a problem like this:
   1: Error (util.c:106): Unable to close fd 33: Bad file descriptor

Signed-off-by: default avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 9ebb3738
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