It’s supposed to do a SIGTERM, wait a little bit for the app to stop and send a SIGKILL.
So basically, we try to terminate a process nicely, and after a second we kill it not so nicely since it has not cleaned-up fast enough.
The timeout is not configurable, but you can try extending it in
framework/c/src/supervisor/app.c on 16.10.
KillTimeout structure that should be modified.
But it might be that your app has not processed the signal fast enough. Do you use
le_sig_SetEventHandler ? If so, maybe your event loop is busy doing something else, and the supervisor tries to kill the process before SIGTERM starts to be processed by your handler.
You could try running another thread and having the signal handled in another thread to see if it’s that.