lkml.org 
[lkml]   [2005]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Possible fix for git
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-04-13 13:07    [W:0.032 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site