summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2013-04-30 05:14:59 +0000
committerjmatthew <jmatthew@openbsd.org>2013-04-30 05:14:59 +0000
commit1add6c269e4d314e56ad267531199484cea2983f (patch)
tree0c38807a57c35059a8423a984f2b30575b67ba2d
parentTweak previous: test __BSD_VISIBLE with #if, not #ifdef (diff)
downloadwireguard-openbsd-1add6c269e4d314e56ad267531199484cea2983f.tar.xz
wireguard-openbsd-1add6c269e4d314e56ad267531199484cea2983f.zip
ignore SIGPIPE so we don't fall over if an ldap connection breaks
ok dlg@
-rw-r--r--usr.sbin/ypldap/ldapclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ypldap/ldapclient.c b/usr.sbin/ypldap/ldapclient.c
index ebb2c934597..9db28150001 100644
--- a/usr.sbin/ypldap/ldapclient.c
+++ b/usr.sbin/ypldap/ldapclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapclient.c,v 1.26 2012/04/30 21:40:03 jmatthew Exp $ */
+/* $OpenBSD: ldapclient.c,v 1.27 2013/04/30 05:14:59 jmatthew Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -400,6 +400,7 @@ ldapclient(int pipe_main2client[2])
#endif
event_init();
+ signal(SIGPIPE, SIG_IGN);
signal_set(&ev_sigint, SIGINT, client_sig_handler, NULL);
signal_set(&ev_sigterm, SIGTERM, client_sig_handler, NULL);
signal_add(&ev_sigint, NULL);