Fix: FDs are added to payload despite not being received
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 27 Apr 2021 01:08:18 +0000 (21:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Apr 2021 21:33:50 +0000 (17:33 -0400)
commitf7eb8cf85db5d139ebccba54ebf84030e2c4647a
tree3241213fb179552d51c1a302d51ff23bb96f3896
parent9cf55c3c24472f49abac1957ae625190bb95b48d
Fix: FDs are added to payload despite not being received

`lttcomm_recv_fds_unix_sock_non_block` can return zero on EAGAIN.

It is important not to add the raw_fds array to the payload in such case
since concretely no FDs have been received.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I551457856c885098bf0de2388936e97456051f93
src/common/unix.c
This page took 0.025203 seconds and 4 git commands to generate.