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 for your replies. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/SIGTERM-and-thread-tp5710294p5710300.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