Skip to content
Commit cd6379eb authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

perf tools: Open perf.data with O_CLOEXEC flag



Do not carry the perf.data file descriptor into the workload process and
close it when perf executes the workload.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20170908084621.31595-2-jolsa@kernel.org


[ Add definitions for O_CLOEXEC for older systems ]
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 58b79186
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment