Re: [Qemu-devel] [PATCH] serial: poll the serial console with G_IO_HUP

2014-04-28 Thread Roger Pau Monné
On 28/04/14 11:19, Paolo Bonzini wrote: > Il 22/04/2014 19:08, Roger Pau Monne ha scritto: >> On FreeBSD polling a master pty while the other end is not connected >> with G_IO_OUT only results in an endless wait. This is different from >> the Linux behaviour, that returns immediately. In order to d

Re: [Qemu-devel] [PATCH] serial: poll the serial console with G_IO_HUP

2014-04-28 Thread Paolo Bonzini
Il 22/04/2014 19:08, Roger Pau Monne ha scritto: > On FreeBSD polling a master pty while the other end is not connected > with G_IO_OUT only results in an endless wait. This is different from > the Linux behaviour, that returns immediately. In order to demonstrate > this, I have the following examp

[Qemu-devel] [PATCH] serial: poll the serial console with G_IO_HUP

2014-04-22 Thread Roger Pau Monne
On FreeBSD polling a master pty while the other end is not connected with G_IO_OUT only results in an endless wait. This is different from the Linux behaviour, that returns immediately. In order to demonstrate this, I have the following example code: http://xenbits.xen.org/people/royger/test_poll.