Reimplement the multi-dimensional arrays that are used to set up the
authorreyk <reyk@openbsd.org>
Sun, 20 Apr 2014 14:48:29 +0000 (14:48 +0000)
committerreyk <reyk@openbsd.org>
Sun, 20 Apr 2014 14:48:29 +0000 (14:48 +0000)
commit9326d639a3dfeb90c54cb9afa9501ba27c09edc4
tree5a474a96ce838730d592ec9e2e87419cf55ebca2
parent7df5cc2054f1242297d9b315b248aced3ffd1916
Reimplement the multi-dimensional arrays that are used to set up the
process to process imsg communication.  It became a maze after we
added support for multiple relay processes and even worse with the ca
processes.  This change makes it easier to understand.  Now it only
opens socketpairs that are needed - the code previously wasted lots of
fds.

ok blambert@
usr.sbin/relayd/proc.c
usr.sbin/relayd/relayd.c
usr.sbin/relayd/relayd.h