1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

zsh-users/2748

This commit is contained in:
Tanaka Akira 1999-11-28 18:43:23 +00:00
parent 154fb62464
commit 23f3f128c7

View file

@ -3159,22 +3159,25 @@ checkjobs(void)
{
int i;
for (i = 1; i < MAXJOB; i++)
for (i = 1; i < MAXJOB; i++) {
if (i != thisjob && (jobtab[i].stat & STAT_LOCKED) &&
!(jobtab[i].stat & STAT_NOPRINT))
break;
if (i < MAXJOB) {
if (jobtab[i].stat & STAT_STOPPED) {
!(jobtab[i].stat & STAT_NOPRINT)) {
if (jobtab[i].stat & STAT_STOPPED) {
#ifdef USE_SUSPENDED
zerr("you have suspended jobs.", NULL, 0);
zerr("you have suspended jobs.", NULL, 0);
#else
zerr("you have stopped jobs.", NULL, 0);
zerr("you have stopped jobs.", NULL, 0);
#endif
} else
zerr("you have running jobs.", NULL, 0);
stopmsg = 1;
stopmsg = 1;
} else if (isset(HUP)) {
zerr("you have running jobs.", NULL, 0);
stopmsg = 1;
}
if (stopmsg)
break;
}
}
}