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:12:08 +0000 (17:12 -0400)
commitb3ba184e31e0e5cc67e7d7fb6594096a068ad1be
tree3241213fb179552d51c1a302d51ff23bb96f3896
parent5dbd97426d568a2a05d94614085cb1cdd8527819
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.025786 seconds and 4 git commands to generate.