diff options
author | 2003-12-22 11:00:19 +0000 | |
---|---|---|
committer | 2003-12-22 11:00:19 +0000 | |
commit | 113167adfc48500b221feddecab43813d59969fc (patch) | |
tree | 688c165ec43d1291aa2325bf95c2e4bac4db4683 | |
parent | pasto in pf_status.src_nodes backup, from 'kirash' (diff) | |
download | wireguard-openbsd-113167adfc48500b221feddecab43813d59969fc.tar.xz wireguard-openbsd-113167adfc48500b221feddecab43813d59969fc.zip |
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
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 4 |
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); |