Skip to content

Commit 452dc8b

Browse files
committed
Use O_NONBLOCK instead of deprecated O_NDELAY (closes #710)
Usually exact same value because `#define O_NDELAY O_NONBLOCK`
1 parent 22ece0f commit 452dc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modbus-rtu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ static int _modbus_rtu_connect(modbus_t *ctx)
639639
640640
Timeouts are ignored in canonical input mode or when the
641641
NDELAY option is set on the file via open or fcntl */
642-
flags = O_RDWR | O_NOCTTY | O_NDELAY | O_EXCL;
642+
flags = O_RDWR | O_NOCTTY | O_NONBLOCK | O_EXCL;
643643
#ifdef O_CLOEXEC
644644
flags |= O_CLOEXEC;
645645
#endif

0 commit comments

Comments
 (0)