mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-14 19:18:09 +02:00
util: handle failing memfd sealing
Assisted-by: Claude:claude-opus-4-6 Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
This commit is contained in:
parent
f12fe4ce14
commit
1b4a0d7c1a
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ memfile_new(const char *data, size_t sz)
|
|||
if (fd < 0)
|
||||
return NULL;
|
||||
|
||||
fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK);
|
||||
if (fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK) < 0)
|
||||
return NULL;
|
||||
|
||||
int rc;
|
||||
with_signals_blocked(SIGALRM)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue