diff 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
line wrap: on
line diff
--- a/rvinterf/lowlevel/openport.c	Sat May 20 22:53:22 2017 +0000
+++ b/rvinterf/lowlevel/openport.c	Thu Aug 03 00:37:59 2017 +0000
@@ -72,6 +72,7 @@
 		perror("initial tcsetattr on target");
 		exit(1);
 	}
+	ioctl(target_fd, TIOCEXCL);
 	return 0;
 }