diff --git a/src/main/c/src/SerialImp.c b/src/main/c/src/SerialImp.c index 3b7c5e25..a9c862bf 100644 --- a/src/main/c/src/SerialImp.c +++ b/src/main/c/src/SerialImp.c @@ -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))