-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11:
dup
fd before passing to shm_attach_fd
This function takes `Into<RawFdContainer>`. So it accepts an owned fd, and closes it. So as long as the API is like this, we need to dup a new fd it can close when calling it. `Into<RawFdContainer>` is implemented for anything implementing `IntoRawFd`, so passing `OwnedFd` works. Fixes #168. Should be backported to 0.3.x.
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 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