[Qemu-devel] Missing system calls retries in case of EINTR
From:
Yigael Fleishman
Subject:
[Qemu-devel] Missing system calls retries in case of EINTR
Date:
Mon, 25 Jun 2007 17:14:24 -0700
Running qemu on a Ubuntu Feisty host I've encountered an occasional failure-to-launch problem. I've used the "-serial /dev/ttyS0" at the command line, and qemu would often exit printing "could not open serial device".
Looking in the srcs I've noticed that qemu_chr_open_tty does not retry the 'open' syscall if it fails and errno=EINTR. I've added a retry for such case and it seems to solve that specific problem (see the following patch).
Furthermore, I've noticed that all open, read and some write calls in vl.c are not retried in such cases. It seems to me retries should be implemented in those cases, however I might still be missing something here.