How to install signal handler for SIGTERM?

theshmike
Posts: 1
Joined: Mon Jun 29, 2020 1:08 pm

How to install signal handler for SIGTERM?

Postby theshmike » Mon Jun 29, 2020 1:52 pm

Does anyone know how to install a signal handler for SIGTERM? It seems to me, that the header files contain the appropiate declarations of the necessary stuff, but the implementation is missing.

I am new to the ESP32. Is it common to handle SIGTERM on the ESP32 or is it irreleveant, because the RTOS will never SIGTERM an application?

ESP_Sprite
Posts: 9052
Joined: Thu Nov 26, 2015 4:08 am

Re: How to install signal handler for SIGTERM?

Postby ESP_Sprite » Tue Jun 30, 2020 7:22 am

The current ESP-IDF doesn't do POSIX signals; any references to them are only there because we want to stay compatible with the POSIX API. So yes, you'll never ever get a SIGTERM or other signal.

Who is online

Users browsing this forum: No registered users and 237 guests