summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-27 17:29:11 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-27 17:29:11 +0000
commit07abfe209276f22ce0bdb9ecf021f951a2eb5269 (patch)
tree1ec41ec99a12b63fd4c45791f340829b146ba504
parent0d8cc1670cdb6c4acdad1e2fcd92cb378873355b (diff)
downloadbusybox-w32-07abfe209276f22ce0bdb9ecf021f951a2eb5269.tar.gz
busybox-w32-07abfe209276f22ce0bdb9ecf021f951a2eb5269.tar.bz2
busybox-w32-07abfe209276f22ce0bdb9ecf021f951a2eb5269.zip
don't whine if all we need to do is remove a bg job
-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)
319 if ( (i=kill(- job->pgrp, SIGCONT)) < 0) { 319 if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
320 if (i == ESRCH) { 320 if (i == ESRCH) {
321 remove_job(&job_list, job); 321 remove_job(&job_list, job);
322 } else {
323 perror_msg("kill (SIGCONT)");
322 } 324 }
323 perror_msg("kill (SIGCONT)");
324 } 325 }
325 326
326 return EXIT_SUCCESS; 327 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)
319 if ( (i=kill(- job->pgrp, SIGCONT)) < 0) { 319 if ( (i=kill(- job->pgrp, SIGCONT)) < 0) {
320 if (i == ESRCH) { 320 if (i == ESRCH) {
321 remove_job(&job_list, job); 321 remove_job(&job_list, job);
322 } else {
323 perror_msg("kill (SIGCONT)");
322 } 324 }
323 perror_msg("kill (SIGCONT)");
324 } 325 }
325 326
326 return EXIT_SUCCESS; 327 return EXIT_SUCCESS;