auxstats: do not postnote 0

This commit is contained in:
Russ Cox 2021-01-14 09:58:44 -05:00
parent 1c845e0bd5
commit fdcf3d70c2

View file

@ -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);
}