lua-users home
lua-l archive

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


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