aboutsummaryrefslogtreecommitdiffstats
path: root/nojobs.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1999-02-19 17:11:39 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:52 +0000
commitb72432fdcc59300c6fe7c9d6c8a31ad3447933f5 (patch)
treeb9899162338c2ff3fd83a8aef8831cb119e85cd7 /nojobs.c
parentbc4cd23ce958feda898c618215f94d8a4e8f4ffa (diff)
downloadandroid_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.gz
android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.bz2
android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.zip
Imported from ../bash-2.03.tar.gz.
Diffstat (limited to 'nojobs.c')
-rw-r--r--nojobs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nojobs.c b/nojobs.c
index de43c35..e111684 100644
--- a/nojobs.c
+++ b/nojobs.c
@@ -668,6 +668,7 @@ get_tty_state ()
}
/* Make the current tty use the state in shell_tty_info. */
+int
set_tty_state ()
{
int tty;
@@ -676,7 +677,7 @@ set_tty_state ()
if (tty != -1)
{
if (got_tty_state == 0)
- return;
+ return 0;
#if defined (TERMIOS_TTY_DRIVER)
tcsetattr (tty, TCSADRAIN, &shell_tty_info);
@@ -688,6 +689,7 @@ set_tty_state ()
# endif
#endif
}
+ return 0;
}
/* Give the terminal to PGRP. */