From: Junio C Hamano Date: Tue, 24 Apr 2007 09:33:48 GMT Subject: Re: [PATCH] Fix handle leak in write_tree Message-ID: <7vps5u86bn.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <81b0412b0704240230x3a5b473k5da3d45d9c997c3b@mail.gmail.com> "Alex Riesen" writes: > ... Isn't such kind of resource control _generally_ nicer to implement > in the top levels of a program? In theory perhaps, but my understanding of our use of atexit() is to clean them up in situations beyond the control of the top levels of a program, most notably upon exit on signal.