Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
The configureAndWatch methods launch a thread to monitor whether a configuration file has changed. Once launched, there is no attempt to reclaim or cleanly shut down the thread when the application exits. Depending on the circumstance, this can delay the programs exit or cause a crash.
The attached patch attempts to shutdown the watchdog thread when the supporting APR pool is being destroyed as part of the APR shutdown sequence. Unfortunately, the patch as it stands will result in a warning about double freed memory when running the modified trivial test program.
The changes to trivial.cpp are not intended to be committed, but provide a sample for testing configureAndWatch.
Attachments
Attachments
Issue Links
- contains
-
LOGCXX-416 FileWatchdog thread crash on exit()
- Resolved