From: Al Viro Date: Tue, 22 Apr 2008 23:46:10 +0000 (-0400) Subject: [PATCH] fix file and descriptor handling in perfmon X-Git-Tag: v2.6.26-rc1~10^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74d92abc6143b124db03f0d341f02bde72fba6f5;p=pandora-kernel.git [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 --- Reading git-diff-tree failed