This is the mail archive of the
mailing list for the GDB project.
When do cleanups happen?
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb at sources dot redhat dot com
- Cc: Daniel Jacobowitz <drow at mvista dot com>
- Date: Wed, 09 Jan 2002 15:41:33 -0800
- Subject: When do cleanups happen?
- Organization: Red Hat, Inc.
- References: <20020109151622.A842@nevyn.them.org> <3C3CC1CD.798D57DB@redhat.com> <20020109181030.B6397@nevyn.them.org>
Daniel Jacobowitz wrote:
[cleanups only happen if there is an error]
> On Wed, Jan 09, 2002 at 02:18:53PM -0800, Michael Snyder wrote:
> > Cleanups are always done, no later than
> > when the command is finished executing (if not earlier).
> Well, the comments in utils.c are wrong, then :)
Hmm! Now I am confused.
What do others think? Are cleanups cleaned-up only on error?
Or always when a command finishes? I know that I have found
that if I make a cleanup that closes a file, then I cannot close
that file myself else it will wind up being closed twice.