Skip to content

Commit

Permalink
Fix a typo that leads to syntax errors with DEBUG defined in run_erl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rtilder committed Aug 6, 2010
1 parent 0d553b4 commit edfe4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/etc/unix/run_erl.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit edfe4b9

Please sign in to comment.