[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] luasyslog 2.0.0 released
- From: Sean Conner <sean@...>
- Date: Tue, 23 Mar 2021 15:01:12 -0400
It was thus said that the Great Thijs Schreijer once stated:
> On 23 Mar 2021, at 09:09, Sean Conner <sean@conman.org<mailto:sean@conman.org>> wrote:
>
> I solved that issue by saving the ident string in the Lua registry, and
> removing it when calling the wrapper for closelog().
>
> @Sean I like the registry usage, but was wondering; shouldn’t “close” be
> called when the library unloads (Lua terminates)? The docs explicitly
> mention dynamically loaded libraries, and the need to call “close” on
> unloading.
Possibly. I think closelog() was just added as a complement to
logopen()---I've certainly never called closelog(), but I suppose there
*might* be some systems out there where the OS cannot reclaim resources upon
program exit and still have syslog().
-spc