terminal: Restore SIGPIPE to default
Prior to executing a new command make SIGPIPE to the default action as we normally disable to avoid. Otherwise we seem to be hitting a Broken Pipe message when running certain scripts.
This is similar to what other folks have been doing in https://github.com/labwc/labwc/issues/1209.
Fixes: #994 (closed)
Signed-off-by: Marius Vlad marius.vlad@collabora.com
Merge request reports
Activity
added Clients label
- Resolved by Derek Foreman
I'm wondering if we should instead store
oldact
at the time we first callsigaction()
and restore it later, in case for some bizarro world reason whomever forkedweston-terminal
in the first place intentionally ignored that signal?I'm kinda ok with that or your approach.
I'm vague on this, but I think you need to either initialize your sigaction to
= { 0 };
or callsigemptyset
on it before use though.
added 32 commits
-
a8af5939...46f25304 - 31 commits from branch
wayland:main
- dcdbb3f4 - terminal: Restore SIGPIPE to default
-
a8af5939...46f25304 - 31 commits from branch
- Resolved by Marius Vlad
- Resolved by Marius Vlad