ref: b47c096c8ceb7b96820ec886146a674eb9ad2c7b
parent: 4915447b1f3e927f3a8457415467dfab5c304c59
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 9 20:00:37 EDT 2016
libdraw: dont postnote to pid==0 in ekill()
--- a/sys/src/libdraw/event.c
+++ b/sys/src/libdraw/event.c
@@ -369,7 +369,7 @@
pid = getpid();
for(i=0; i<nslave; i++){
- if(pid == eslave[i].pid)
+ if(eslave[i].pid == 0 || pid == eslave[i].pid)
continue; /* don't kill myself */
postnote(PNPROC, eslave[i].pid, "die");
}