summaryrefslogtreecommitdiff
path: root/erts/etc/unix/run_erl.c
diff options
context:
space:
mode:
authorRyan Tilder <ryan@tilder.org>2010-08-06 15:07:32 -0700
committerBjörn Gustavsson <bjorn@erlang.org>2010-09-29 16:39:05 +0200
commit9b6cd9712b34a1705fc1ec2dda4878d0bbb3b1e4 (patch)
tree950a5f804314dfd659352303f9aec06363bf49de /erts/etc/unix/run_erl.c
parent8e9a96141120b43b4edf05705a2a261916a902a5 (diff)
downloaderlang-9b6cd9712b34a1705fc1ec2dda4878d0bbb3b1e4.tar.gz
Fix a typo that leads to syntax errors with DEBUG defined in run_erl
While attempting to debug odd terminal echo issues on Solaris, I noticed that run_erl.c will fail to compile due to a typo causing a syntax error.
Diffstat (limited to 'erts/etc/unix/run_erl.c')
-rw-r--r--erts/etc/unix/run_erl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index 4bb148df98..07d8071720 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -982,7 +982,7 @@ static int open_pty_slave(char *name)
}
#ifdef DEBUG
- if (tcgetattr(sfd, &tty_rmode) , 0) {
+ if (tcgetattr(sfd, &tty_rmode) < 0) {
fprintf(stderr, "Cannot get terminals current mode\n");
exit(-1);
}