qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [patch 04/10] qemu: introduce main_loop_break


From: Markus Armbruster
Subject: Re: [Qemu-devel] [patch 04/10] qemu: introduce main_loop_break
Date: Fri, 03 Apr 2009 16:08:32 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Anthony Liguori <address@hidden> writes:

> Marcelo Tosatti wrote:
>> I didnt know. Anthony wrote this code, so I'll let him comment.
>>   
> Is this guaranteed by Posix and reliable across Unixes?  In general, I
> think it's better to be conservative with this sort of thing.

For what it's worth, POSIX.1-2001 guarantees atomicity of up to PIPE_BUF
bytes, and PIPE_BUF must be at least 512.  See pipe(7).  More modern
chapter & verse is online:

http://www.opengroup.org/onlinepubs/009695399/functions/write.html
http://www.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html

A note on select() bugs related to PIPE_BUF in some ancient crap:

http://cr.yp.to/docs/unixport.html




reply via email to

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