aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lash.c3
-rw-r--r--shell/lash.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lash.c b/lash.c
index e4ca5f67b..7c932a910 100644
--- a/lash.c
+++ b/lash.c
@@ -319,8 +319,9 @@ 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)");
}
- perror_msg("kill (SIGCONT)");
}
return EXIT_SUCCESS;
diff --git a/shell/lash.c b/shell/lash.c
index e4ca5f67b..7c932a910 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -319,8 +319,9 @@ 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)");
}
- perror_msg("kill (SIGCONT)");
}
return EXIT_SUCCESS;