Introduce new IMSG_CTL_PROCREADY which is used to signal that all pipes
authortobhe <tobhe@openbsd.org>
Thu, 15 Feb 2024 20:10:45 +0000 (20:10 +0000)
committertobhe <tobhe@openbsd.org>
Thu, 15 Feb 2024 20:10:45 +0000 (20:10 +0000)
commit8e8f56e933c8ef7a1b9d491332de403d4264d421
tree279eae53f22f87777a2e252996697da2d6f40db5
parentac16f2e6ef35214112cf5853213e4198f667f7b8
Introduce new IMSG_CTL_PROCREADY which is used to signal that all pipes
are set up by child processes. The parent sends a ping to all children
and only starts once it has received an acknowledgement from all of them.
This fixes a race condition on process startup when the parent starts
running before all children are ready.

From markus@
sbin/iked/iked.c
sbin/iked/iked.h
sbin/iked/proc.c
sbin/iked/types.h