I have an application running on Linux, catching signals and sending them to syslog.
This application often reports SIGPIPE events for no apparent reason.
The application runs in the background as a daemon. Signals appear in standby mode with no visible network / sockets. The application often reads and writes to disk and DVB-cards (via DVB kernel drivers).
I would like to know the reason for SIGPIPE. Any means of tracking the source of the signal?
Edit: I added this to the code:
stdin = freopen("/dev/null", "r", stdin); stdout = freopen("/tmp/vdr_stdout", "w", stdout); stderr = freopen("/tmp/vdr_stderr", "w", stderr);
Still get SIGPIPE.
Bernd source share