summaryrefslogtreecommitdiff
path: root/news/tin/patches/patch-ah
blob: bc87284f67f44e8e9b88e70f26a4ea629dd9650f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ah,v 1.1 2009/10/22 22:01:26 wiz Exp $

--- src/feed.c.orig	2008-12-30 20:26:23.000000000 +0100
+++ src/feed.c
@@ -607,8 +607,10 @@ feed_articles(
 			EndWin(); /* Turn off curses/windowing */
 			Raw(FALSE);
 			fflush(stdout);
+			set_signal_catcher(FALSE);
 			if ((pipe_fp = popen(tinrc.default_pipe_command, "w")) == NULL) {
 				perror_message(_(txt_command_failed), tinrc.default_pipe_command);
+				set_signal_catcher(TRUE);
 				Raw(TRUE);
 				InitWin();
 				return;
@@ -846,6 +848,7 @@ got_sig_pipe_while_piping:
 			got_sig_pipe = FALSE;
 			fflush(pipe_fp);
 			(void) pclose(pipe_fp);
+			set_signal_catcher(TRUE);
 			Raw(TRUE);
 			InitWin();
 			prompt_continue();