-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wayland-commons: avoid empty sendmsg on flush
If there is nothing to send, there's no point actually making the system call. The list of FDs is not checked because sending FDs without also sending data is not permitted anyway. This also updates tests to detect errors on reads (not writes), which is where a real client would expect to detect them. The native client requires two reads because the first one will just read the protocol error message.
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters