esh: don't create jobs from & commands when not interactive
This commit is contained in:
parent
9a6a5ce9c1
commit
d26129ce39
|
@ -1301,8 +1301,10 @@ _nope:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nowait) {
|
if (nowait) {
|
||||||
fprintf(stderr, "[%d] %s\n", pgid, arg_starts[0][0]);
|
if (shell_interactive == 1) {
|
||||||
hashmap_set(job_hash, (void*)pgid, strdup(arg_starts[0][0]));
|
fprintf(stderr, "[%d] %s\n", pgid, arg_starts[0][0]);
|
||||||
|
hashmap_set(job_hash, (void*)pgid, strdup(arg_starts[0][0]));
|
||||||
|
}
|
||||||
free(cmd);
|
free(cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue