summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2000-07-06 16:56:56 +0000
committerEric Andersen2000-07-06 16:56:56 +0000
commitb2731b11ef49c9ebbc8aa12e8f9a88bb909cbd71 (patch)
treea96e1724f90e386b34c1cfd067ce23e2f4a9043a
parent1e03add675c58c17d96f51cafa008066d4220a09 (diff)
downloadbusybox-b2731b11ef49c9ebbc8aa12e8f9a88bb909cbd71.zip
busybox-b2731b11ef49c9ebbc8aa12e8f9a88bb909cbd71.tar.gz
Had an extra tcsetpgrp.
-Erik
-rw-r--r--lash.c4
-rw-r--r--sh.c4
-rw-r--r--shell/lash.c4
3 files changed, 0 insertions, 12 deletions
diff --git a/lash.c b/lash.c
index 2d6bfb5..7203ba3 100644
--- a/lash.c
+++ b/lash.c
@@ -1022,10 +1022,6 @@ static int busy_loop(FILE * input)
/* return controlling TTY back to parent process group before exiting */
if (tcsetpgrp(0, parent_pgrp))
- perror("tcsetpgrp");
-
- /* return controlling TTY back to parent process group before exiting */
- if (tcsetpgrp(0, parent_pgrp))
perror("tcsetpgrp");
/* return exit status if called with "-c" */
diff --git a/sh.c b/sh.c
index 2d6bfb5..7203ba3 100644
--- a/sh.c
+++ b/sh.c
@@ -1022,10 +1022,6 @@ static int busy_loop(FILE * input)
/* return controlling TTY back to parent process group before exiting */
if (tcsetpgrp(0, parent_pgrp))
- perror("tcsetpgrp");
-
- /* return controlling TTY back to parent process group before exiting */
- if (tcsetpgrp(0, parent_pgrp))
perror("tcsetpgrp");
/* return exit status if called with "-c" */
diff --git a/shell/lash.c b/shell/lash.c
index 2d6bfb5..7203ba3 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1022,10 +1022,6 @@ static int busy_loop(FILE * input)
/* return controlling TTY back to parent process group before exiting */
if (tcsetpgrp(0, parent_pgrp))
- perror("tcsetpgrp");
-
- /* return controlling TTY back to parent process group before exiting */
- if (tcsetpgrp(0, parent_pgrp))
perror("tcsetpgrp");
/* return exit status if called with "-c" */