Does signal.h can not use for developer?
Posted: Mon Oct 10, 2022 5:39 am
When in linux socket, SIGPIPE is an signal we must handle.
But when I want to handle it in ESP32. Errors will be reported during compilation:
```c
#include <signal.h>
#include <stdio.h>
void sighandler(int signum) {
printf("signal %d\n", signum);
}
void app_main(void) {
signal(SIGPIPE, sighandler);
raise(SIGPIPE);
}
```
Does ESP-IDF do not use signal.h?
And in ESP-IDF components signal handle is OK. Why?
And in ESP-IDF components the SIGPIPE handler with different action function (I search all of ESP-IDF folder). Doesn't that conflict?
But when I want to handle it in ESP32. Errors will be reported during compilation:
```c
#include <signal.h>
#include <stdio.h>
void sighandler(int signum) {
printf("signal %d\n", signum);
}
void app_main(void) {
signal(SIGPIPE, sighandler);
raise(SIGPIPE);
}
```
Does ESP-IDF do not use signal.h?
And in ESP-IDF components signal handle is OK. Why?
And in ESP-IDF components the SIGPIPE handler with different action function (I search all of ESP-IDF folder). Doesn't that conflict?