diff options
Diffstat (limited to 'Src/signals.c')
-rw-r--r-- | Src/signals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/signals.c b/Src/signals.c index 86a5de748..6863421fe 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -582,7 +582,7 @@ killrunjobs(int from_signal) if (unset(HUP)) return; - for (i = 1; i < MAXJOB; i++) + for (i = 1; i <= maxjob; i++) if ((from_signal || i != thisjob) && (jobtab[i].stat & STAT_LOCKED) && !(jobtab[i].stat & STAT_NOPRINT) && !(jobtab[i].stat & STAT_STOPPED)) { |