diff options
author | 2013-04-30 05:14:59 +0000 | |
---|---|---|
committer | 2013-04-30 05:14:59 +0000 | |
commit | 1add6c269e4d314e56ad267531199484cea2983f (patch) | |
tree | 0c38807a57c35059a8423a984f2b30575b67ba2d | |
parent | Tweak previous: test __BSD_VISIBLE with #if, not #ifdef (diff) | |
download | wireguard-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.c | 3 |
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); |