I am coding in c and wanted to know via coding what's the best way to know if a signal (for example SIGUSR1) terminated a process. Is there a way to make it with a function and flag it so other processes may know it?
More info: The process is a program I did in C. Later when the process ends (with the signal or not) I wanted another program I have to know it. They are connected via fifos.