libdraw: dont postnote to pid==0 in ekill()
This commit is contained in:
parent
4915447b1f
commit
b47c096c8c
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue