diff --git a/LogSyslog.st b/LogSyslog.st index f06c223..2413432 100644 --- a/LogSyslog.st +++ b/LogSyslog.st @@ -73,9 +73,17 @@ LogTarget subclass: LogTargetSyslog [ "Workaround Debian multiarch issues in finding libc" DLD addLibrary: 'libm'. + + ObjectMemory addDependent: self. ] - LogTargetSyslog class >> update: aSymbol [] + LogTargetSyslog class >> update: aSymbol [ + "We need to forget the C String we have allocated as we are running + in a new VM right now. Maybe we will be re-opened by someone." + aSymbol = #returnFromSnapshot ifTrue: [ + Smalltalk at: #SYSLOG_NAME put: nil. + ]. + ] print: aMessage [