]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix file and descriptor handling in perfmon
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 Apr 2008 23:46:10 +0000 (19:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 1 May 2008 17:07:13 +0000 (13:07 -0400)
commit775b5d3780653fd181d900258460facec9d54493
treed5b2d4e42d3ca0b145f66597d21a9df8855c35bf
parent4b9cf8d0ff8f43f4838cb3049f574f4eae6ff052
[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: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/kernel/perfmon.c