diff options
-rw-r--r-- | chardev/char-serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chardev/char-serial.c b/chardev/char-serial.c index ae548d2..3299b46 100644 --- a/chardev/char-serial.c +++ b/chardev/char-serial.c @@ -265,7 +265,8 @@ static void qmp_chardev_open_serial(Chardev *chr, ChardevHostdev *serial = backend->u.serial.data; int fd; - fd = qmp_chardev_open_file_source(serial->device, O_RDWR, errp); + fd = qmp_chardev_open_file_source(serial->device, O_RDWR | O_NONBLOCK, + errp); if (fd < 0) { return; } |