aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auxstats
diff options
context:
space:
mode:
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);
}