From 3334b38905019c6eccef7e97a08ea1803ca23c31 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 1 Sep 1999 12:15:24 +0000 Subject: zsh-workers/7605 --- Src/jobs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Src/jobs.c') diff --git a/Src/jobs.c b/Src/jobs.c index fdf69a960..7b060cd87 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -1292,8 +1292,7 @@ bin_fg(char *name, char **argv, char *ops, int func) thisjob = job; if ((jobtab[job].stat & STAT_SUPERJOB) && ((!jobtab[job].procs->next || - WIFEXITED(jobtab[job].procs->status) || - WIFSIGNALED(jobtab[job].procs->status))) && + killpg(jobtab[job].gleader, 0) == -1)) && jobtab[jobtab[job].other].gleader) attachtty(jobtab[jobtab[job].other].gleader); else -- cgit 1.4.1