Kill p_instance from proc.c and remove static proc_id unused variables.
authorrzalamena <rzalamena@openbsd.org>
Sat, 27 Aug 2016 11:13:16 +0000 (11:13 +0000)
committerrzalamena <rzalamena@openbsd.org>
Sat, 27 Aug 2016 11:13:16 +0000 (11:13 +0000)
commitb607ef5af6e8cb4789f3820224e0c20a3727d708
tree78204b2e00f5fb06ae9fce140d062671b14b28f6
parent4f0deb3b6a1c143bbf3e77154a4bbd2aa66c6999
Kill p_instance from proc.c and remove static proc_id unused variables.

To keep the debug functionality intact and correct we'll use the pid
field in the imsg header to pass the instance number. Remember to always
pass 'ps_instance + 1' otherwise libutil will fill imsg header pid field
with the imsgbuf pid (which is the current process pid).

ok reyk@
usr.sbin/httpd/control.c
usr.sbin/httpd/httpd.h
usr.sbin/httpd/logger.c
usr.sbin/httpd/proc.c
usr.sbin/httpd/server.c