qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] migration: adding migration to/from a file (v2)


From: Jamie Lokier
Subject: Re: [Qemu-devel] migration: adding migration to/from a file (v2)
Date: Thu, 19 Feb 2009 19:33:24 +0000
User-agent: Mutt/1.5.13 (2006-08-11)

Uri Lublin wrote:
> Your concern in the previous patch was that write() to a regular file might 
> block. That's why I'm calling select before calling write. Do you think 
> select will mark the fd as writeable but write would still block ?

select() on a regular file _always_ marks the fd as writable.  That's
one of the rules of select().  For non-blocking file access you can
only use threads or AIO, or a helper process.

-- Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]