On 13/07/2018 16:55, Marc-André Lureau wrote: > - return; > + } else { > + int rc = qemu_chr_fe_write(&s->chr, &s->tsr, 1); > + > + if ((rc == 0 || > + (rc == -1 && (errno == EAGAIN || errno == EINTR))) && > + s->tsr_retry < MAX_XMIT_RETRY) { > + assert(s->watch_tag == 0); > + s->watch_tag = > + qemu_chr_fe_add_watch(&s->chr, G_IO_OUT | G_IO_HUP, > + serial_watch_cb, s); > + if (s->watch_tag > 0) { > + s->tsr_retry++; > + return; > + }
I think EINTR should be handled by chardev, otherwise yes. Paolo