diff options
| author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-13 16:10:37 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-13 16:10:37 +0100 |
| commit | 1238374df998b7f4a3efcf0532076ee1d18bc575 (patch) | |
| tree | ccf0743774e627212231ddf6e68d428d210b4474 | |
| parent | 36dc22fd5713cca65bbe31eb7d7a5a6d6b034637 (diff) | |
| download | plan9front-1238374df998b7f4a3efcf0532076ee1d18bc575.tar.xz | |
killbig(): fix crash if no process could be found
| -rw-r--r-- | sys/src/9/port/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index f2045e840..3b74575b7 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -1514,7 +1514,8 @@ killbig(char *why) max = l; } } - + if(kp == 0) + return; print("%lud: %s killed: %s\n", kp->pid, kp->text, why); for(p = procalloc.arena; p < ep; p++) { if(p->state == Dead || p->kp) |
