summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-22 11:00:20 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-22 11:00:20 +0000
commit5fb4459ba5d31ff5128ee8407b2605120056f905 (patch)
tree032f45c0c282cd43703c32c1af497ecc8ac90d88 /usr.sbin/bgpd/bgpd.c
parent32aea5af881769ff8f2dc502c5f88f227fd59909 (diff)
when starting up and the configuration has errors, do not call fatal().
plain exit() is enough. we have not yet forked and an error message is already printed by the parser. inspired by a theo request
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index e88f7f0e6a3..2a98f4deabd 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.12 2003/12/21 23:28:39 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.13 2003/12/22 11:00:19 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -137,7 +137,7 @@ main(int argc, char *argv[])
}
if (parse_config(conffile, &conf, &mrtconf))
- fatal("config file has errors", 0);
+ exit (1);
signal(SIGTERM, sighdlr);
signal(SIGKILL, sighdlr);