summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-01-19 10:16:45 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-01-19 10:16:45 +0000
commit0e1c4017aeedacc0c6e32fb63ddd6cca4738e4af (patch)
treeb9b09426a8ee84740d6bb6b6454563cacee8b67f
parentf233093ee13f4127d662e024e7a8903e6e1a6b7e (diff)
Like in all other log.c file just use exit(1) in fatal() calls.
This log.c should be further synced with the other log.c files.
-rw-r--r--usr.sbin/ripd/log.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/ripd/log.c b/usr.sbin/ripd/log.c
index 5ceb4552b79..6b59bc16e9e 100644
--- a/usr.sbin/ripd/log.c
+++ b/usr.sbin/ripd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.7 2017/03/21 12:06:56 bluhm Exp $ */
+/* $OpenBSD: log.c,v 1.8 2021/01/19 10:16:44 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -150,10 +150,7 @@ fatal(const char *emsg)
logit(LOG_CRIT, "fatal in %s: %s",
log_procname, emsg);
- if (ripd_process == PROC_MAIN)
- exit(1);
- else /* parent copes via SIGCHLD */
- _exit(1);
+ exit(1);
}
void