I am writing a bash program that has IPC between two proccesses (A and B) via named pipes. I am worried because if A crashes, B may be blocked indefinitely (and vice versa), because named pipes are blocking. Can I link A and B so, if A crashes, force B to crash too? Any other alternatives to solve this blocking problem would be appreciated.
Thank you in advance.
You may need an additional process “C” that monitors the activity of process “A” and process “B”