I'm using named pipes to have 2 Perl processes communicate with each other. I've been able to set up a 2 named pipes for input/output, but I can't seem to find documentation on how to detect in either process when the other closes the pipe, deletes the file, or otherwise hangs up. I registered a signal handler with $SIG{PIPE} but a signal never seems to get sent. How can my code detect when the other process is gone?