mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Possible fix for git
@ 2005-04-13 11:03 Peter Hagervall
  0 siblings, 0 replies; only message in thread
From: Peter Hagervall @ 2005-04-13 11:03 UTC (permalink / raw)
  To: torvalds, pasky, linux-kernel

I noticed earlier today that I ran out of file descriptors when doing a
'git commit'. As far as I can see the following patch ought to take
care of the problem.

Signed-off-by: Peter Hagervall <hager@cs.umu.se>

---


--- read-cache.c
+++ read-cache.c        2005-04-13 12:51:52.000000000 +0200
@@ -257,6 +257,7 @@
                        return error("SHA1 collision detected!"
                                        " This is bad, bad, BAD!\a\n");
 #endif
+               close(fd);
                return 0;
        }
        write(fd, buf, size);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-13 11:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 11:03 [PATCH] Possible fix for git Peter Hagervall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®