-/* $OpenBSD: control.c,v 1.16 2021/01/19 16:52:12 florian Exp $ */
+/* $OpenBSD: control.c,v 1.17 2021/02/24 18:34:14 florian Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
break;
}
+ c->iev.ibuf.pid = imsg.hdr.pid;
switch (imsg.hdr.type) {
case IMSG_CTL_RELOAD:
- frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
+ frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
+ NULL, 0);
break;
case IMSG_CTL_LOG_VERBOSE:
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
case IMSG_CTL_MEM:
if (IMSG_DATA_SIZE(imsg) != 0)
break;
- frontend_imsg_compose_resolver(imsg.hdr.type, 0, NULL,
- 0);
+ frontend_imsg_compose_resolver(imsg.hdr.type,
+ imsg.hdr.pid, NULL, 0);
break;
default:
log_debug("%s: error handling imsg %d", __func__,