mq_overview.7: Note that the close-on-exec flag is automatically set on MQ descriptors

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-06 15:19:39 +01:00
parent 6b1e34f2a4
commit 785008cd99
1 changed files with 9 additions and 3 deletions

View File

@ -336,14 +336,20 @@ and
.B SIGNO
Signal number to be used for
.BR SIGEV_SIGNAL .
.SS Polling message queue descriptors
On Linux, a message queue descriptor is actually a file descriptor,
and can be monitored using
.SS Linux implementation of message queue descriptors
On Linux, a message queue descriptor is actually a file descriptor.
(POSIX does not require such an implementation.)
This means that a message queue descriptor can be monitored using
.BR select (2),
.BR poll (2),
or
.BR epoll (7).
This is not portable.
The close-on-exec flag (see
.BR open (2))
is automatically set on the file descriptor returned by
.BR mq_open (2).
.SS IPC namespaces
For a discussion of the interaction of System V IPC objects and
IPC namespaces, see