Did you try a simpler handler ?

Maybe just set a variable and exit. Just a kind of test case...

2012/7/11 jmbottu <jm.bott...@novaxel.tm.fr>:
> 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 terminating the program can no longer run.
>
> Thanks in advance for your help.
> Jean-Marc
>
> --
> View this message in context: 
> http://free-pascal-general.1045716.n5.nabble.com/SIGTERM-and-thread-tp5710294.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to