Skip to content
Commit 74d92abc authored by Al Viro's avatar Al Viro
Browse files

[PATCH] fix file and descriptor handling in perfmon



Races galore...  General rule: as soon as it's in descriptor table,
it's over; another thread might have started IO on it/dup2() it
elsewhere/dup2() something *over* it/etc.  fd_install() is the very
last step one should take - it's a point of no return.

Besides, the damn thing leaked on failure exits...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e4c576b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment