changeset 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 5af4990451d9
children 6616f4e35579
files loadtools/sercomm.c rvinterf/lowlevel/openport.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/sercomm.c	Sat May 20 22:53:22 2017 +0000
+++ b/loadtools/sercomm.c	Thu Aug 03 00:37:59 2017 +0000
@@ -53,6 +53,7 @@
 		perror("initial tcsetattr on target");
 		exit(1);
 	}
+	ioctl(target_fd, TIOCEXCL);
 	return 0;
 }
 
--- 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;
 }