diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-05 15:20:15 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-30 14:23:13 -0400 |
commit | 0260d1d542da73b3358fa659fb1fa634badbf00e (patch) | |
tree | 0eba0f98522c5e456c7edc4a9023bf8c2c192293 /man/sd_journal_next.xml | |
parent | 7bbb5359c0a23061c9bd40e6f7c2a0afbf2906f8 (diff) |
sd-daemon: fix sd_is_mq for non-mq fds
mq_getattr returns -1/EBADF for file descriptors which are not mq.
But we should return 0 in this case.
We first check that fd is a valid fd, so we can assume that if
mq_getattr returns EBADF, it is simply a non-mq fd. There is a slight
race, but there doesn't seem to be a nice way to fix it.
Diffstat (limited to 'man/sd_journal_next.xml')
0 files changed, 0 insertions, 0 deletions