blob: 764743414060080676808675dc4b08311fdb4f2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- irio.c.orig 2018-08-12 05:33:43 UTC
+++ irio.c
@@ -97,14 +97,6 @@ int ir_open_port(char *filename)
return -1;
}
- /* lock the file for ourselves */
- if (flock(portfd, LOCK_EX | LOCK_NB) < 0) {
- /* unable to get lock */
- close(portfd);
- portfd = 0;
- return -1;
- }
-
/* get port attributes, store in oldterm */
if (tcgetattr(portfd, &oldterm) < 0) {
close(portfd);
|