Re: Beagle CPU usage (was Proposed module: tracker)



On Tue, 2007-03-27 at 17:13 -0600, Hans Petter Jansson wrote:

> I tend to favor read() on user data:
> 
> - For robustness: An mmap() map can become invalid if the file is
> truncated, crashing the process.

Furthermore, read() handles errors (like say a disk i/o error) much more
gracefully.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an immortal skateboarding photographer with no name. She's a cold-hearted 
snooty bodyguard married to the Mob. They fight crime! 




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