提交 b6855851 编写于 作者: T ths

Do not call fcntl(, O_NONBLOCK) pointlessly, by Ian Jackson.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4889 c046a42c-6fe2-441c-8c8c-71466251a162
上级 fd58ff9d
...@@ -2573,7 +2573,6 @@ static CharDriverState *qemu_chr_open_tty(const char *filename) ...@@ -2573,7 +2573,6 @@ static CharDriverState *qemu_chr_open_tty(const char *filename)
int fd; int fd;
TFR(fd = open(filename, O_RDWR | O_NONBLOCK)); TFR(fd = open(filename, O_RDWR | O_NONBLOCK));
fcntl(fd, F_SETFL, O_NONBLOCK);
tty_serial_init(fd, 115200, 'N', 8, 1); tty_serial_init(fd, 115200, 'N', 8, 1);
chr = qemu_chr_open_fd(fd, fd); chr = qemu_chr_open_fd(fd, fd);
if (!chr) { if (!chr) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册