Hello,
I wrote a handler to intercept the SIGTERM signal and execute some
processing before terminating the program.
It works fine.
But when i add the cthreads unit in the uses clause, the application seems
to do a shutdown after the end of the handler function, and the processing
before terminati
In the handler i just set a variable.
I have solved my problem in setting my own handler later in the application,
after having started the threads.
It seems there is another handler which is setting when i use threads and
that starts a shutdown of the application when receiving SIGTERM.
Thank you