From: Al Viro Date: Thu, 1 May 2008 21:36:36 +0000 (-0700) Subject: [IA64] fix file and descriptor handling in perfmon X-Git-Tag: v2.6.26-rc1~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e811b98935f702b48abc92563462a15c226eb8;p=pandora-kernel.git [IA64] 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 Signed-off-by: Tony Luck --- Reading git-diff-tree failed