[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Windows Build: feature branch, src/exithandle.c,

From: Conrad T. Pino
Subject: RE: Windows Build: feature branch, src/exithandle.c,
Date: Sun, 16 May 2004 15:00:41 -0700

Hi Derek,

> From: Derek Robert Price
> This thread prompted me to clean up identical inchoherent comments in
> server_cleanup, rcs_cleanup, and Lock_Cleanup and I noticed that I had
> at one point put code into each function to avoid running the
> functions twice after the exit() that is always called at the end of
> main_cleanup() goes and causes all the functions registered via
> atexit() to be called.

I assume the multiple patch options I've generated are still suitable
to judge there merits.  I don't plan to regenerate them until I see a
consensus forming or by specific request.

> So, how about his much simpler idea:  Only register main_cleanup() as
> a signal handler and let all the other cleanup functions be called via
> atexit() and exit()?
> The only drawback is that if one of the exit handlers is interrupted
> by a signal, then it won't be called again via the second call to
> atexit(), but it's possible that this could be coded around.

In general I say more options are better but regrettably I don't have
the knowledge I require to render a valid opinion.

> Derek


reply via email to

[Prev in Thread] Current Thread [Next in Thread]