]> git.mdlowis.com Git - proto/labwc.git/commit
Ignore SIGPIPE
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 27 Apr 2023 08:04:55 +0000 (10:04 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 27 Apr 2023 17:21:24 +0000 (18:21 +0100)
commited8999456a6653612c618ab7f00d66fafdbe85ad
treedeab166ae89b53f45b3da0ca6f6b7a88d1fd18eb
parent957dd43af2ee88578dd0fef63fe706ba61359355
Ignore SIGPIPE

Prevent wayland clients that request the X11 clipboard but closing
their read fd prematurely to crash labwc because of the unhandled
SIGPIPE signal. It is caused by wlroots trying to write the X11
clipboard data to the closed fd of the wayland client.

See https://github.com/labwc/labwc/issues/890#issuecomment-1524962995
for a reproducer involving xclip and wl-paste | head -c 1.

Fixes #890
Reported-by: @FuzzyQuills
src/server.c