diff options
-rw-r--r-- | lash.c | 3 | ||||
-rw-r--r-- | shell/lash.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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; |