summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpki-client/main.c')
-rw-r--r--usr.sbin/rpki-client/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 89578897de9..a290203c45c 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.133 2021/04/08 16:32:42 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.134 2021/04/08 17:07:55 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1044,9 +1044,9 @@ main(int argc, char *argv[])
if (pid == -1) {
if (errno == EINTR)
continue;
- if (errno != ECHILD)
- err(1, "wait");
- break;
+ if (errno == ECHILD)
+ break;
+ err(1, "wait");
}
if (pid == procpid)