perf_event_open.2: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-02 09:40:28 +02:00
parent e9b1ab7892
commit 8bad22e53b
1 changed files with 2 additions and 2 deletions

View File

@ -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