summaryrefslogtreecommitdiffstats
path: root/crypto/842.c
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2013-06-04 17:44:26 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-07-08 17:36:33 -0300
commitd07f0b120642f442d81a61f68a9325fb7717004f (patch)
tree0a0c3e465c98439a4ab98bbdb21892422b994ca1 /crypto/842.c
parent079787f209416416383c74ea5d5044be2d586f5e (diff)
downloadlinux-stable-d07f0b120642f442d81a61f68a9325fb7717004f.tar.gz
linux-stable-d07f0b120642f442d81a61f68a9325fb7717004f.tar.bz2
linux-stable-d07f0b120642f442d81a61f68a9325fb7717004f.zip
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 <eranian@google.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20130604154426.GA2928@quad Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'crypto/842.c')
0 files changed, 0 insertions, 0 deletions