FreeCalypso > hg > freecalypso-tools
comparison loadtools/sercomm.c @ 226:e7d5ce499693
loadtools and rvinterf: set TIOCEXCL on the tty
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 03 Aug 2017 00:37:59 +0000 |
parents | e7502631a0f9 |
children |
comparison
equal
deleted
inserted
replaced
225:5af4990451d9 | 226:e7d5ce499693 |
---|---|
51 cfsetospeed(&target_termios, B19200); | 51 cfsetospeed(&target_termios, B19200); |
52 if (tcsetattr(target_fd, TCSAFLUSH, &target_termios) < 0) { | 52 if (tcsetattr(target_fd, TCSAFLUSH, &target_termios) < 0) { |
53 perror("initial tcsetattr on target"); | 53 perror("initial tcsetattr on target"); |
54 exit(1); | 54 exit(1); |
55 } | 55 } |
56 ioctl(target_fd, TIOCEXCL); | |
56 return 0; | 57 return 0; |
57 } | 58 } |
58 | 59 |
59 struct baudrate * | 60 struct baudrate * |
60 find_baudrate_by_name(srch_name) | 61 find_baudrate_by_name(srch_name) |