diff --git a/hw4/rsrc/bg_test.mush b/hw4/rsrc/bg_test.mush index a41864a..dfcc996 100644 --- a/hw4/rsrc/bg_test.mush +++ b/hw4/rsrc/bg_test.mush @@ -1,7 +1,7 @@ -10 sleep 10 & +10 sleep 1000 & 15 echo line 15 -20 sleep 5 & +20 sleep 5000 & 25 echo line 25 -30 sleep 3 & +30 sleep 3000 & 35 echo line 35 run diff --git a/hw4/src/jobs.c b/hw4/src/jobs.c index e60a07e..70b9721 100644 --- a/hw4/src/jobs.c +++ b/hw4/src/jobs.c @@ -383,7 +383,7 @@ int jobs_run(PIPELINE *pline) { close(new->pipe[1]); new->status = RUNNING; - return 0; + return index; } char **jobs_get_args(ARG *args) {