mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
While here, assign maintainership to submitter PR: 230558 Submitted by: Nathan <ndowens@yahoo.com> Approved by: rand@iteris.com (maintainer)
18 lines
409 B
C
18 lines
409 B
C
--- 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);
|