aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auxstats
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2021-01-14 09:58:44 -0500
committerRuss Cox <rsc@swtch.com>2021-01-14 09:58:44 -0500
commitfdcf3d70c24886dddb5fd7052dfada67d33d5c75 (patch)
treec94ed8a1d24af5ace0cd2949c8a164f2faf19585 /src/cmd/auxstats
parent1c845e0bd5ff897dc5e90f2c24db4ecd81a8f60c (diff)
downloadplan9port-fdcf3d70c24886dddb5fd7052dfada67d33d5c75.tar.gz
plan9port-fdcf3d70c24886dddb5fd7052dfada67d33d5c75.tar.bz2
plan9port-fdcf3d70c24886dddb5fd7052dfada67d33d5c75.zip
auxstats: do not postnote 0
Diffstat (limited to 'src/cmd/auxstats')
-rw-r--r--src/cmd/auxstats/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/auxstats/main.c b/src/cmd/auxstats/main.c
index 3fd77ac4..a37c9723 100644
--- 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);
}