From: Stephane Eranian Date: Tue, 4 Jun 2013 15:44:26 +0000 (+0200) Subject: perf stat: Avoid sending SIGTERM to random processes X-Git-Tag: v3.11-rc1~10^2~4^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d07f0b120642f442d81a61f68a9325fb7717004f;p=pandora-kernel.git perf stat: Avoid sending SIGTERM to random processes This patch fixes a problem with perf stat whereby on termination it may send a SIGTERM signal to random processes on systems with high PID recycling. I got some actual bug reports on this. There is race between the SIGCHLD and sig_atexit() handlers. This patch addresses this problem by clearing child_pid in the SIGCHLD handler. Signed-off-by: Stephane Eranian Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20130604154426.GA2928@quad Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed