about summary refs log tree commit diff
path: root/Src/jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/jobs.c')
-rw-r--r--Src/jobs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index a50b84fd7..31861e284 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -92,13 +92,9 @@ makerunning(Job jn)
 
     jn->stat &= ~STAT_STOPPED;
     for (pn = jn->procs; pn; pn = pn->next)
-#if 0
 	if (WIFSTOPPED(pn->status) && 
 	    (!(jn->stat & STAT_SUPERJOB) || pn->next))
 	    pn->status = SP_RUNNING;
-#endif
-        if (WIFSTOPPED(pn->status))
-	    pn->status = SP_RUNNING;
 
     if (jn->stat & STAT_SUPERJOB)
 	makerunning(jobtab + jn->other);
@@ -185,9 +181,8 @@ update_job(Job jn)
 
 		for (i = 1; i < MAXJOB; i++)
 		    if ((jobtab[i].stat & STAT_SUPERJOB) &&
-			jobtab[i].other == job &&
-			jobtab[i].gleader) {
-			killpg(jobtab[i].gleader, SIGTSTP);
+			jobtab[i].other == job) {
+			killpg(jobtab[i].gleader, SIGSTOP);
 			break;
 		    }
 	    }