Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/main/c/src/SerialImp.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,17 +713,12 @@ JNIEXPORT jint JNICALL RXTXPort(open)(
See tty(4) ("man 4 tty") and ioctl(2) ("man 2 ioctl") for details.
*/
#if defined(__linux__)
int ret;
//report_error("\nnative open(): Setting ownership flags");
ret= fcntl(fd,F_SETOWN,getpid());
fcntl(fd,F_SETOWN,getpid());
//report_error( strerror(errno) );

//report_error("\nnativec(): Forcing unlock flags");
ret = fcntl(fd,F_UNLCK);
//report_error( strerror(errno) );

//report_error("\nnative open(): Setting read/write flags");
ret= fcntl(fd,F_SETFL,O_CLOEXEC|O_RDWR|O_NONBLOCK);
fcntl(fd,F_UNLCK);
//report_error( strerror(errno) );
#endif
if (fd >= 0 && (ioctl(fd, TIOCEXCL) == -1))
Expand Down