Wasnt sure if I should post this here on in the Linux Forum

I have a consumer - produces a named pipe.

The consumer will then read what is sent in the pipe from the producer.

The problem is, I cant get the consumer to read until there is something to be read. I was going to send signals, and have handlers for them, but I wasnt sure how to obtain the PIDs.

How would I be able to get them, mainly the consumer's.