fix: return job index instead of 0
This commit is contained in:
parent
64073b2490
commit
f9906ed62c
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user