From f3735931aaa7e6c5c7e869e2acb6b8b72521a6a7 Mon Sep 17 00:00:00 2001 From: rzalamena <> Date: Tue, 18 Oct 2016 21:57:19 +0000 Subject: [PATCH] Save the constraint process pid by getting the start_child() return value, this should fix the problem with random ntpd(8) deaths. ok deraadt@ --- src/usr.sbin/ntpd/constraint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/constraint.c b/src/usr.sbin/ntpd/constraint.c index af04d7c9..0ec4e91c 100644 --- a/src/usr.sbin/ntpd/constraint.c +++ b/src/usr.sbin/ntpd/constraint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: constraint.c,v 1.32 2016/09/26 17:17:01 rzalamena Exp $ */ +/* $OpenBSD: constraint.c,v 1.33 2016/10/18 21:57:19 rzalamena Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -264,7 +264,7 @@ priv_constraint_msg(u_int32_t id, u_int8_t *data, size_t len, int argc, * the (unprivileged) child. The parent should not do any parsing, * certificate loading etc. */ - start_child(CONSTRAINT_PROC_NAME, pipes[1], argc, argv); + cstr->pid = start_child(CONSTRAINT_PROC_NAME, pipes[1], argc, argv); } void