diff options
author | Ray Strode <rstrode@redhat.com> | 2016-05-16 10:20:10 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2016-06-16 12:00:24 -0400 |
commit | bb2ca3b94d53c009c78d0f364c41ae0220ea2c9e (patch) | |
tree | 395d9430bb762744cfdada37d024f8f325643e25 /gtk/gtkmountoperation.h | |
parent | 080fdfa7f9495fc6cc8c286cbfefc7ecf6d61656 (diff) | |
download | gtk+-bb2ca3b94d53c009c78d0f364c41ae0220ea2c9e.tar.gz |
wayland: fix error handling for memfd_create
We currently use syscall() directly to invoke memfd_create,
since the function isn't available in libc headers yet.
The code, though, mishandles how errors are passed from syscall().
It assumes syscall returns the error code directly (but negative),
when in fact, syscall() uses errno.
Also, the code fails to retry on EINTR.
This commit moves the handling of memfd create to a helper function,
and changes the code to use errno and handle EINTR.
https://bugzilla.gnome.org/show_bug.cgi?id=766341
Diffstat (limited to 'gtk/gtkmountoperation.h')
0 files changed, 0 insertions, 0 deletions