Re: [PATCH] Fix handle leak in builtin-pack-objects

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Pitre
Date: Wednesday, November 19, 2008 - 7:31 am

On Wed, 19 Nov 2008, Johannes Sixt wrote:


Well, I'd include it right away since it is fundamentally the right 
thing to do.


That's not the issue.

The test is using pack-objects to overwrite a pack file, but to do so 
pack-objects has to open and read from the pack file about to be 
overwritten.  This is just wrong even if it happens to work by luck on 
Linux.

It is on purpose that the pack files are kept open.  This is to minimize 
the number of open() and mmap()/read() operations between successive 
object reads.  Those are not leaked file handles since they get closed 
when new packs are opened and the number of concurrent opened packs 
reaches a certain limit.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 19, 4:13 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Johannes Sixt, (Wed Nov 19, 4:54 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 19, 5:13 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Johannes Sixt, (Wed Nov 19, 5:26 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Nicolas Pitre, (Wed Nov 19, 5:45 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Nicolas Pitre, (Wed Nov 19, 5:55 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Johannes Sixt, (Wed Nov 19, 6:06 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 19, 6:30 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 19, 6:34 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Johannes Sixt, (Wed Nov 19, 6:55 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 19, 7:17 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Nicolas Pitre, (Wed Nov 19, 7:31 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Nicolas Pitre, (Wed Nov 19, 7:42 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Johannes Sixt, (Wed Nov 19, 7:52 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 26, 6:18 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Nicolas Pitre, (Wed Nov 26, 7:33 am)
Re: [PATCH] Fix handle leak in builtin-pack-objects, Alex Riesen, (Wed Nov 26, 11:43 am)