Re: [evolution-patches] 36778, file descriptor usage problems



looks good

On Fri, 2005-03-18 at 13:00 +0800, Not Zed wrote:
> 
> this patch fixes a bug where a file descriptor is closed twice every
> time a mbox mailbox is synced.
> 
> normally this is harmless, but if there is a lot of threading going
> on, it could lead to data corruption, and possibly this is the cause
> of bug 36778, and some 'summary mismatch' type bugs, and who knows
> what else.
> 
> i.e.
> open() = 12
> do processing
> close(12)
> -> context switch
>     open () = 12
> <- context switch
> close(12)
> -> context switch
>       any processing on file descriptor  will fail (spurious failures)
> <- context switch
> open some other file = 12
> -> context switch
>     any processing on file will corrupt it or interfere with it
> 
> etc.
> 




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