summaryrefslogtreecommitdiff
path: root/mh/mhn.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-03-26 18:54:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-03-26 18:54:00 +0000
commitf94f327411ada1a7c8ed4033f5230ef7cdabb64e (patch)
tree834b31e21da105d872a2fd3127e68bf7aa7c75dd /mh/mhn.c
parent9b3ffb9725a770e2e97bc9cd10e0bff6b17d959c (diff)
downloadmailutils-f94f327411ada1a7c8ed4033f5230ef7cdabb64e.tar.gz
mailutils-f94f327411ada1a7c8ed4033f5230ef7cdabb64e.tar.bz2
(main): Ignore sighups.
Diffstat (limited to 'mh/mhn.c')
-rw-r--r--mh/mhn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mh/mhn.c b/mh/mhn.c
index 5a69d9e5c..94667f940 100644
--- a/mh/mhn.c
+++ b/mh/mhn.c
@@ -18,6 +18,7 @@
/* MH mhn command */
#include <mh.h>
+#include <signal.h>
#include <mailutils/mime.h>
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
@@ -2509,6 +2510,8 @@ main (int argc, char **argv)
argc -= index;
argv += index;
+ signal (SIGPIPE, SIG_IGN);
+
if (input_file)
{
if (argc)

Return to:

Send suggestions and report system problems to the System administrator.