Currently modules can only exit with C 'exit' (or similar). There is no proper shutdown as a result and thus memory-leak operations can't be processed. We need to exit gracefully; there are a few options here:
The advantage of the latter is that it simplifies logic processing (no need to store some static variable); the advantage of the former is it lets observer/event-based plugins (those that don't provide an update) to exit the program. I think both are viable options, as the pulcComponentShouldExit can be an optional function.
Currently modules can only exit with C 'exit' (or similar). There is no proper shutdown as a result and thus memory-leak operations can't be processed. We need to exit gracefully; there are a few options here:
or
The advantage of the latter is that it simplifies logic processing (no need to store some static variable); the advantage of the former is it lets observer/event-based plugins (those that don't provide an update) to exit the program. I think both are viable options, as the
pulcComponentShouldExit
can be an optional function.