Re: [patch v2] perf_event_open.2 : document PERF_FLAG_FD_CLOEXEC flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 4 Apr 2014, Michael Kerrisk (man-pages) wrote:

> >>               on-exec  flags at  creation time, rather than later with
> >>               fcntl(2), avoids potential  race  conditions  where  the
> >>               calling  thread  invokes  perf_event_open()  at the same
> >>               time as another thread calls fork(2) then execve(2).
> > 
> > I'm not sure of a scuccint way to express that though.
> 
> I think the existing text suffices.

My concern is that it should be 
    "where the calling thread invokes *fcntl()* at the same time..."
rather than
    "where the calling thread invokes *perf_event_open()* at the same time..."

but maybe that's just a small detail, I'm fine with the current text 
otherwise.

Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux