qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] flush stdout after printing usage()


From: Riku Voipio
Subject: Re: [Qemu-devel] [PATCH] flush stdout after printing usage()
Date: Fri, 6 Feb 2009 16:33:39 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jan 28, 2009 at 04:00:09PM -0600, Anthony Liguori wrote:
> Lionel Landwerlin wrote:
>>> On Wed, Jan 28, 2009 at 02:10:42PM -0600, Anthony Liguori wrote:
>>>> Riku Voipio wrote:

>>>>> Without fflush() getting output from piped qemu is a bit random.
>>>>>         
>>>> It should get flushed upon exit(). Perhaps the problem is that 
>>>> we're using _exit() instead of exit()?
>>>>       

>> _exit does not trigger callbacks registred with at_exit.

> Yes.  The question is why is it being used?  What at_exit handler are we  
> trying to avoid.

Historic reasons? Just to "be safe" since system qemu uses atexit handlers?
I don't see any atexit handlers registered for linux-user (or bsd-user)
targets for current svn qemu. Definetly none registered at command line parsing
stage.





reply via email to

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