diff options
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -344,7 +344,7 @@ static int builtin_fg_bg(struct child_prog *child) | |||
344 | /* Make this job the foreground job */ | 344 | /* Make this job the foreground job */ |
345 | /* suppress messages when run from /linuxrc mag@sysgo.de */ | 345 | /* suppress messages when run from /linuxrc mag@sysgo.de */ |
346 | if (tcsetpgrp(0, job->pgrp) && errno != ENOTTY) | 346 | if (tcsetpgrp(0, job->pgrp) && errno != ENOTTY) |
347 | perror("tcsetpgrp"); | 347 | perror_msg("tcsetpgrp"); |
348 | child->family->job_list->fg = job; | 348 | child->family->job_list->fg = job; |
349 | } | 349 | } |
350 | 350 | ||
@@ -683,7 +683,7 @@ static void checkjobs(struct jobset *job_list) | |||
683 | } | 683 | } |
684 | 684 | ||
685 | if (childpid == -1 && errno != ECHILD) | 685 | if (childpid == -1 && errno != ECHILD) |
686 | perror("waitpid"); | 686 | perror_msg("waitpid"); |
687 | } | 687 | } |
688 | 688 | ||
689 | /* squirrel != NULL means we squirrel away copies of stdin, stdout, | 689 | /* squirrel != NULL means we squirrel away copies of stdin, stdout, |
@@ -1422,7 +1422,7 @@ static void insert_job(struct job *newjob, int inbg) | |||
1422 | /* move the new process group into the foreground */ | 1422 | /* move the new process group into the foreground */ |
1423 | /* suppress messages when run from /linuxrc mag@sysgo.de */ | 1423 | /* suppress messages when run from /linuxrc mag@sysgo.de */ |
1424 | if (tcsetpgrp(0, newjob->pgrp) && errno != ENOTTY) | 1424 | if (tcsetpgrp(0, newjob->pgrp) && errno != ENOTTY) |
1425 | perror("tcsetpgrp"); | 1425 | perror_msg("tcsetpgrp"); |
1426 | } | 1426 | } |
1427 | } | 1427 | } |
1428 | 1428 | ||
@@ -1612,7 +1612,7 @@ static int busy_loop(FILE * input) | |||
1612 | /* move the shell to the foreground */ | 1612 | /* move the shell to the foreground */ |
1613 | /* suppress messages when run from /linuxrc mag@sysgo.de */ | 1613 | /* suppress messages when run from /linuxrc mag@sysgo.de */ |
1614 | if (tcsetpgrp(0, getpid()) && errno != ENOTTY) | 1614 | if (tcsetpgrp(0, getpid()) && errno != ENOTTY) |
1615 | perror("tcsetpgrp"); | 1615 | perror_msg("tcsetpgrp"); |
1616 | } | 1616 | } |
1617 | } | 1617 | } |
1618 | } | 1618 | } |
@@ -1620,7 +1620,7 @@ static int busy_loop(FILE * input) | |||
1620 | 1620 | ||
1621 | /* return controlling TTY back to parent process group before exiting */ | 1621 | /* return controlling TTY back to parent process group before exiting */ |
1622 | if (tcsetpgrp(0, parent_pgrp)) | 1622 | if (tcsetpgrp(0, parent_pgrp)) |
1623 | perror("tcsetpgrp"); | 1623 | perror_msg("tcsetpgrp"); |
1624 | 1624 | ||
1625 | /* return exit status if called with "-c" */ | 1625 | /* return exit status if called with "-c" */ |
1626 | if (input == NULL && WIFEXITED(status)) | 1626 | if (input == NULL && WIFEXITED(status)) |