From a43c6db049e32184361efac1f65d641b249a14ec Mon Sep 17 00:00:00 2001 From: pooka Date: Sun, 8 Jul 2007 17:13:24 +0000 Subject: [PATCH] play it safe: ignore sigpipe --- usr.sbin/puffs/mount_portal/puffs_portal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/puffs/mount_portal/puffs_portal.c b/usr.sbin/puffs/mount_portal/puffs_portal.c index 48e3b173166b..696bdd7197f8 100644 --- a/usr.sbin/puffs/mount_portal/puffs_portal.c +++ b/usr.sbin/puffs/mount_portal/puffs_portal.c @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_portal.c,v 1.3 2007/07/08 11:45:00 pooka Exp $ */ +/* $NetBSD: puffs_portal.c,v 1.4 2007/07/08 17:13:24 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -411,6 +411,8 @@ main(int argc, char *argv[]) warn("cannot set sighup handler"); if (signal(SIGCHLD, sigcry) == SIG_ERR) err(1, "cannot set sigchild handler"); + if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) + err(1, "cannot ignore sigpipe"); readcfg = 0; cfg = argv[0];