mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
ipc: It's okay to send zero handles
This commit is contained in:
parent
019e962f94
commit
201b5337df
2
doc/changes/ipc/mr.491.md
Normal file
2
doc/changes/ipc/mr.491.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
ipc: Allow sending zero handles as a reply, at least the Linux fd handling code
|
||||
allows this.
|
|
@ -187,7 +187,7 @@ ipc_send_fds(struct ipc_message_channel *imc,
|
|||
assert(data != NULL);
|
||||
assert(size != 0);
|
||||
assert(handles != NULL);
|
||||
assert(num_handles != 0);
|
||||
|
||||
union imcontrol_buf u = {0};
|
||||
size_t cmsg_size = CMSG_SPACE(sizeof(int) * num_handles);
|
||||
|
||||
|
|
Loading…
Reference in a new issue