Why not SIGPIPE for readers of pipe/FIFO?

Hi

This is a exercise question from Unix network programming vol2.

Why the SIGPIPE signal is generated only for writers when readers disappear.
why not it is generated for readers when writer disappears.

I guess, if the writer didn't get any response like the reader gets EOF,
it will keep on adding bytes to pipe/FIFO and eventually cause PIPE_BUF to full.

Please correct me if i am wrong.

Thanks
Kumaran

See your book. Figure 4.21 contains the answer.

The figure 4.21 says that SIGPIPE will be generated to a write process, when the read process has been terminated/ no read process is present.

My doubt is why not the reader gets SIGPIPE when write process terminates/ no write process exists.

Think about it. Is reading still potentially possible when the writing process terminates?

Because there simply is no need to signal the reader as the reader already has a mechanism to detect this condition.