Had an extra tcsetpgrp.
-Erik
diff --git a/lash.c b/lash.c
index 2d6bfb5..7203ba3 100644
--- a/lash.c
+++ b/lash.c
@@ -1022,10 +1022,6 @@
/* 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 @@
/* 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 @@
/* 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" */