From ba2130f0c8306d3c0dfd1ecb9ef68177bd3c4311 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Thu, 21 Mar 2013 14:24:51 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20change=20signal=20mask=20in=20l?= =?UTF-8?q?ibrary=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This belongs in main(), where it is already being set. It might however be necessary to set it when running tests, although none of the tests seems to fail w/o this. --- Frameworks/document/src/watch.cc | 1 - Frameworks/network/src/tbz.cc | 2 -- 2 files changed, 3 deletions(-) diff --git a/Frameworks/document/src/watch.cc b/Frameworks/document/src/watch.cc index 74bda8bc..e88d3c0a 100644 --- a/Frameworks/document/src/watch.cc +++ b/Frameworks/document/src/watch.cc @@ -225,7 +225,6 @@ namespace document { oak::set_thread_name("document::watch_server_t"); - signal(SIGPIPE, SIG_IGN); event_queue = kqueue(); struct kevent changeList; diff --git a/Frameworks/network/src/tbz.cc b/Frameworks/network/src/tbz.cc index 313a1442..11bb7705 100644 --- a/Frameworks/network/src/tbz.cc +++ b/Frameworks/network/src/tbz.cc @@ -13,8 +13,6 @@ namespace network { if(io::process_t process = io::spawn(std::vector{ "/usr/bin/tar", "-jxmkC", dest.c_str(), "--strip-components", "1" })) { - signal(SIGPIPE, SIG_IGN); - input = process.in; output = process.out;