libdraw: dont postnote to pid==0 in ekill()

This commit is contained in:
cinap_lenrek 2016-04-10 00:00:37 +02:00
parent 4915447b1f
commit b47c096c8c

View file

@ -369,7 +369,7 @@ ekill(void)
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");
}