From f987d306241a3858a27481395e6cd2077d984cfb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Mon, 16 Jul 2007 21:14:59 +0000 Subject: use fatal and not err, the message would get lost. found by Kevin Steves --- usr.sbin/hoststated/check_icmp.c | 5 ++--- usr.sbin/relayd/check_icmp.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/usr.sbin/hoststated/check_icmp.c b/usr.sbin/hoststated/check_icmp.c index 09a3555ed15..558fc6907c2 100644 --- a/usr.sbin/hoststated/check_icmp.c +++ b/usr.sbin/hoststated/check_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_icmp.c,v 1.16 2007/05/31 03:24:05 pyr Exp $ */ +/* $OpenBSD: check_icmp.c,v 1.17 2007/07/16 21:14:58 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -33,7 +33,6 @@ #include #include #include -#include #include @@ -56,7 +55,7 @@ icmp_setup(struct hoststated *env, struct ctl_icmp_event *cie, int af) if (af == AF_INET6) proto = IPPROTO_ICMPV6; if ((cie->s = socket(af, SOCK_RAW, proto)) < 0) - err(1, "icmp_init: socket"); + fatal("icmp_init: socket"); session_socket_blockmode(cie->s, BM_NONBLOCK); cie->env = env; cie->af = af; diff --git a/usr.sbin/relayd/check_icmp.c b/usr.sbin/relayd/check_icmp.c index 09a3555ed15..558fc6907c2 100644 --- a/usr.sbin/relayd/check_icmp.c +++ b/usr.sbin/relayd/check_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_icmp.c,v 1.16 2007/05/31 03:24:05 pyr Exp $ */ +/* $OpenBSD: check_icmp.c,v 1.17 2007/07/16 21:14:58 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -33,7 +33,6 @@ #include #include #include -#include #include @@ -56,7 +55,7 @@ icmp_setup(struct hoststated *env, struct ctl_icmp_event *cie, int af) if (af == AF_INET6) proto = IPPROTO_ICMPV6; if ((cie->s = socket(af, SOCK_RAW, proto)) < 0) - err(1, "icmp_init: socket"); + fatal("icmp_init: socket"); session_socket_blockmode(cie->s, BM_NONBLOCK); cie->env = env; cie->af = af; -- cgit v1.2.3