From 9b6cd9712b34a1705fc1ec2dda4878d0bbb3b1e4 Mon Sep 17 00:00:00 2001 From: Ryan Tilder Date: Fri, 6 Aug 2010 15:07:32 -0700 Subject: 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. --- erts/etc/unix/run_erl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts/etc/unix') 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); } -- cgit v1.2.3