From 29dc66896daef970cb1d03d0d01b7b7b35057a2a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 9 Dec 2020 07:14:18 +0200 Subject: Ignore SIGPIPE We'll just handle the failed write. IssueID #92 --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f146bb25..5e4e7284 100644 --- a/src/main.c +++ b/src/main.c @@ -36,9 +36,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include #include #include +#include int main(int argc, char **argv) { printf("Lagrange: A Beautiful Gemini Client\n"); + signal(SIGPIPE, SIG_IGN); #if defined (iPlatformApple) enableMomentumScroll_MacOS(); registerURLHandler_MacOS(); -- cgit v1.2.3