I don't know when this is necessary, but sometimes the pl2303 on an espressobin board blocks on open() otherwise. kermit uses O_NONBLOCK, too.
Signed-off-by: Uwe Kleine-König <u.kleine-koe...@pengutronix.de> --- serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial.c b/serial.c index 00b817d9c94f..0778fe1d8698 100644 --- a/serial.c +++ b/serial.c @@ -203,7 +203,7 @@ struct ios_ops * serial_init(char *device) close(fd); force: /* open the device */ - fd = open(device, O_RDWR); + fd = open(device, O_RDWR | O_NONBLOCK); ops->fd = fd; if (fd < 0) { -- 2.16.1 _______________________________________________ OSS-Tools mailing list OSS-Tools@pengutronix.de