don't whine if all we need to do is remove a bg job

This commit is contained in:
Eric Andersen 2001-06-27 17:29:11 +00:00
parent 0d8cc1670c
commit 07abfe2092
2 changed files with 4 additions and 2 deletions

3
lash.c
View File

@ -319,9 +319,10 @@ static int builtin_fg_bg(struct child_prog *child)
if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
if (i == ESRCH) {
remove_job(&job_list, job);
}
} else {
perror_msg("kill (SIGCONT)");
}
}
return EXIT_SUCCESS;
}

View File

@ -319,9 +319,10 @@ static int builtin_fg_bg(struct child_prog *child)
if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
if (i == ESRCH) {
remove_job(&job_list, job);
}
} else {
perror_msg("kill (SIGCONT)");
}
}
return EXIT_SUCCESS;
}