ash: stopped jobs should only prevent exit from interactive shell
When the user tries to exit an interactive shell with stopped jobs present the shell issues a warning and only exits if the user insists by trying to exit again. This shouldn't apply to non-interactive shells. Reported-by: Roberto A. Foglietta <roberto.foglietta@gmail.com> Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0beee20977
commit
50239a665c
@ -5451,7 +5451,7 @@ stoppedjobs(void)
|
||||
int retval;
|
||||
|
||||
retval = 0;
|
||||
if (job_warning)
|
||||
if (!iflag || job_warning)
|
||||
goto out;
|
||||
jp = curjob;
|
||||
if (jp && jp->state == JOBSTOPPED) {
|
||||
|
Loading…
Reference in New Issue
Block a user