Re: [evolution-patches] File descriptor leaks from open() in e-d-s



On Mon, 2007-05-14 at 10:21 -0400, Jeffrey Stedfast wrote:
> hmmm, I wonder if glib has a g_mkstemp() or something? if not, perhaps
> we should consider writing our own mkstemp() wrapper in
> camel-file-utils.c or something.
> 
> if there is a g_mkstemp(), this code could be simplified a bit and
> probably not have to alloca() at all.

There is indeed:
http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html#g-mkstemp




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