diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-09-08 06:24:32 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-09-08 06:24:32 +0000 |
commit | d6602284a8aca759565d3e9c5906b19975831da4 (patch) | |
tree | 8267bc36706b414c8f3615eadac83c35a0f61d88 /usr.sbin/vmd/control.c | |
parent | d57c7d7b30add2ecd463f68aef3651ef7bca7eb7 (diff) |
vmd: add more explanatory log_debug messages
From Carlos Cardenas, many thanks!
Diffstat (limited to 'usr.sbin/vmd/control.c')
-rw-r--r-- | usr.sbin/vmd/control.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/vmd/control.c b/usr.sbin/vmd/control.c index 1af8a0d5e14..1a3aefe7d49 100644 --- a/usr.sbin/vmd/control.c +++ b/usr.sbin/vmd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.21 2017/07/15 05:05:36 pd Exp $ */ +/* $OpenBSD: control.c,v 1.22 2017/09/08 06:24:31 mlarkin Exp $ */ /* * Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org> @@ -401,9 +401,14 @@ control_dispatch_imsg(int fd, short event, void *arg) goto fail; memcpy(&vid, imsg.data, sizeof(vid)); vid.vid_uid = c->peercred.uid; + log_debug("%s id: %d, name: %s, uid: %d", + __func__, vid.vid_id, vid.vid_name, + vid.vid_uid); if (proc_compose_imsg(ps, PROC_PARENT, -1, imsg.hdr.type, fd, -1, &vid, sizeof(vid)) == -1) { + log_debug("%s: proc_compose_imsg failed", + __func__); control_close(fd, cs); return; } |