comparison rvinterf/lowlevel/openport.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
70 cfsetospeed(&target_termios, br_code); 70 cfsetospeed(&target_termios, br_code);
71 if (tcsetattr(target_fd, TCSAFLUSH, &target_termios) < 0) { 71 if (tcsetattr(target_fd, TCSAFLUSH, &target_termios) < 0) {
72 perror("initial tcsetattr on target"); 72 perror("initial tcsetattr on target");
73 exit(1); 73 exit(1);
74 } 74 }
75 ioctl(target_fd, TIOCEXCL);
75 return 0; 76 return 0;
76 } 77 }
77 78
78 set_serial_nonblock(state) 79 set_serial_nonblock(state)
79 int state; 80 int state;