From 8bad22e53b1ed09a9d9bcec0e9586811d6604fe6 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 2 Apr 2014 09:40:28 +0200 Subject: [PATCH] perf_event_open.2: grfix Signed-off-by: Michael Kerrisk --- man2/perf_event_open.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 index c6fb9e193..ff33ba1aa 100644 --- a/man2/perf_event_open.2 +++ b/man2/perf_event_open.2 @@ -137,8 +137,8 @@ This flag enables the close-on-exec flag for the created event file descriptor, so that the file descriptor is automatically closed on .BR execve (2). -Setting the close-on-exec flags at creation time rather than later with -.BR fcntl (2) +Setting the close-on-exec flags at creation time, rather than later with +.BR fcntl (2), avoids potential race conditions where the calling thread invokes .BR perf_event_open () at the same time as another thread calls