diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index a87f908b..bedfa073 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.21 2004/09/18 23:21:35 henning Exp $ */ +/* $OpenBSD: ntpd.c,v 1.22 2004/09/23 01:53:07 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -186,8 +186,10 @@ main(int argc, char *argv[]) } if (sigchld) { - if (check_child(chld_pid, "child")) + if (check_child(chld_pid, "child")) { quit = 1; + chld_pid = 0; + } sigchld = 0; }