qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] Permit zero-sized qemu_malloc() & friends


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH] Permit zero-sized qemu_malloc() & friends
Date: Mon, 07 Dec 2009 10:55:43 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4

On 12/07/2009 10:39 AM, Ian Molton wrote:
Send what message to the host? If the malloc in the socet reconnect code
fails, its the code on the host thats going to flag up that malloc failed.

He means to management code.

>  and if it does manage to receive the message, you can be almost
>  certain that it won't be able to run any GUI operations, send mail,
>  etc. to inform the admin.

OTOH, If all it does it log it to a file, theres a fair chance it might
succeed.

Not necessarily, for example fprintf may fail. There _may_ be a fair chance to succeed if you use write(2) directly, but that's it basically, and ENOMEM is always there waiting for you...

Paolo





reply via email to

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