On 12/07/2009 11:55 AM, Paolo Bonzini wrote:
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...

Right, if malloc() failed write(2) is likely to fail as well. More likely, in fact, since malloc() may have unused process memory to draw upon whereas write(2) can only allocate kernel memory.

--
error compiling committee.c: too many arguments to function



Reply via email to