From 3e6992c128313373efe6ee719c3ec9fda28eb020 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Sun, 9 Jul 2006 01:57:52 +0000 Subject: handle SIGPIPE correctly. --- usr.bin/cvs/cvs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index 026e9c91200..a3dc2fbc346 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.106 2006/07/07 17:37:17 joris Exp $ */ +/* $OpenBSD: cvs.c,v 1.107 2006/07/09 01:57:51 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau @@ -83,6 +83,7 @@ sighandler(int sig) switch (sig) { case SIGINT: case SIGTERM: + case SIGPIPE: cvs_quit = 1; break; default: -- cgit v1.2.3