fix: return job index instead of 0

This commit is contained in:
Renge 2022-04-15 21:35:24 -04:00
parent 64073b2490
commit f9906ed62c
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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) {