aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/unix/to_erl.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-07-22 11:34:49 +0200
committerBjörn-Egil Dahlberg <[email protected]>2013-07-22 11:34:49 +0200
commitaee76ad7e0efe5f97992350264029e198a7257a4 (patch)
tree43317b3e63b2d68afcfb22f3c86dec37da1b3639 /erts/etc/unix/to_erl.c
parentc6f452c340ad1749ce91c037a4820ea0feb0a644 (diff)
parent02986f8623e02b5afba41f7f593710e74b3c8a7f (diff)
downloadotp-aee76ad7e0efe5f97992350264029e198a7257a4.tar.gz
otp-aee76ad7e0efe5f97992350264029e198a7257a4.tar.bz2
otp-aee76ad7e0efe5f97992350264029e198a7257a4.zip
Merge branch 'sze/to_erl/OTP-11206' into maint
* sze/to_erl/OTP-11206: Fix changing terminal parameters in to_erl
Diffstat (limited to 'erts/etc/unix/to_erl.c')
-rw-r--r--erts/etc/unix/to_erl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c
index 0f27b64811..b9e397cbf2 100644
--- a/erts/etc/unix/to_erl.c
+++ b/erts/etc/unix/to_erl.c
@@ -339,7 +339,7 @@ int main(int argc, char **argv)
tty_smode.c_cc[VTIME] =0;/* Note that VTIME is the same as VEOL! */
tty_smode.c_cc[VINTR] =3;
- tcsetattr(0, TCSANOW, &tty_smode);
+ tcsetattr(0, TCSADRAIN, &tty_smode);
#ifdef DEBUG
show_terminal_settings(&tty_smode);
@@ -484,7 +484,7 @@ int main(int argc, char **argv)
* Reset terminal characterstics
* XXX
*/
- tcsetattr(0, TCSANOW, &tty_rmode);
+ tcsetattr(0, TCSADRAIN, &tty_rmode);
return 0;
}