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