speechd-discuss
[Top][All Lists]
Advanced

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

[External] Re: dtusb module


From: Luke Yelavich
Subject: [External] Re: dtusb module
Date: Tue, 17 Mar 2015 16:31:15 +1100

On Tue, Mar 17, 2015 at 01:28:38AM AEDT, Klarich, Terry J. wrote:
> i Trev:
> 
> It seemed wasteful to me to call fflush each time printf was called to output 
> a line of text.  I originally used setvbuf() to put stdout in line mode.  
> Evidently, I did something wrong or don't understand setvbuf().  I have since 
> switched to fflush() for now so I can continue.  I'll revisit setvbuf() later.

Speech Dispatcher sets the descriptor between the server and the module to 
_IONBF which according to the setvbuf manpage, is unbuffered. The manpage 
states that fflush is only useful when the fd is in line buffered mode, so if 
my understanding is correct, fflush wouldn't have any effect.

Luke



reply via email to

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