aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2014-12-01 14:03:49 +0100
committerBert Münnich <be.muennich@gmail.com>2014-12-01 14:03:49 +0100
commit6216bf6c2d42be63025d29550831d9f4447f4066 (patch)
tree637b2bb47075f1b13d964b9ad4fe59ca4b94c281
parent216ad81b59a7b3a9a4d1f83a26fa2a23ff17a0e0 (diff)
Ignore SIGPIPE, caused by key handler exiting before all files got printed, fixes issue #188
-rw-r--r--Makefile2
-rw-r--r--main.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 11eced0..d22fab6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION := git-20141127
+VERSION := git-20141201
PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man
diff --git a/main.c b/main.c
index 57798c4..904a567 100644
--- a/main.c
+++ b/main.c
@@ -798,6 +798,8 @@ int main(int argc, char **argv)
struct stat fstats;
r_dir_t dir;
+ signal(SIGPIPE, SIG_IGN);
+
parse_options(argc, argv);
if (options->clean_cache) {