mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
don't whine if all we need to do is remove a bg job
This commit is contained in:
parent
0d8cc1670c
commit
07abfe2092
3
lash.c
3
lash.c
@ -319,8 +319,9 @@ static int builtin_fg_bg(struct child_prog *child)
|
|||||||
if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
|
if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
|
||||||
if (i == ESRCH) {
|
if (i == ESRCH) {
|
||||||
remove_job(&job_list, job);
|
remove_job(&job_list, job);
|
||||||
|
} else {
|
||||||
|
perror_msg("kill (SIGCONT)");
|
||||||
}
|
}
|
||||||
perror_msg("kill (SIGCONT)");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
@ -319,8 +319,9 @@ static int builtin_fg_bg(struct child_prog *child)
|
|||||||
if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
|
if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
|
||||||
if (i == ESRCH) {
|
if (i == ESRCH) {
|
||||||
remove_job(&job_list, job);
|
remove_job(&job_list, job);
|
||||||
|
} else {
|
||||||
|
perror_msg("kill (SIGCONT)");
|
||||||
}
|
}
|
||||||
perror_msg("kill (SIGCONT)");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user