Revision 519945df vl.c
b/vl.c | ||
---|---|---|
1417 | 1417 |
uint8_t buf[1]; |
1418 | 1418 |
|
1419 | 1419 |
size = read(0, buf, 1); |
1420 |
if (size == 0) { |
|
1421 |
/* stdin has been closed. Remove it from the active list. */ |
|
1422 |
qemu_set_fd_handler2(0, NULL, NULL, NULL, NULL); |
|
1423 |
return; |
|
1424 |
} |
|
1420 | 1425 |
if (size > 0) |
1421 | 1426 |
stdio_received_byte(buf[0]); |
1422 | 1427 |
} |
Also available in: Unified diff