Skip to content
Commit e4c8b6c5 authored by Manuel Stoeckl's avatar Manuel Stoeckl Committed by Héctor Orón Martínez
Browse files

connection: do not abort when dup(fd) fails



Instead, cleanly exit wl_closure_marshal and let the caller handler
the error. For wayland-client, the sole calling function will call
wl_abort() anyway. For wayland-server, the calling function will
cleanly shutdown the client.

This change ensures that compositors run with low file descriptor
limits or internal leaks need not crash suddenly (and sometimes
far from the problem) when space runs out.

Signed-off-by: default avatarManuel Stoeckl <code@mstoeckl.com>
parent ab32f5fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment