plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit fdcf3d70c24886dddb5fd7052dfada67d33d5c75
parent 1c845e0bd5ff897dc5e90f2c24db4ecd81a8f60c
Author: Russ Cox <rsc@swtch.com>
Date:   Thu, 14 Jan 2021 09:58:44 -0500

auxstats: do not postnote 0

Diffstat:
Msrc/cmd/auxstats/main.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cmd/auxstats/main.c b/src/cmd/auxstats/main.c @@ -21,7 +21,8 @@ notifyf(void *v, char *msg) if(strstr(msg, "child")) noted(NCONT); - postnote(PNPROC, pid, msg); + if(pid) + postnote(PNPROC, pid, msg); exits(nil); }