|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
How to handle SIGPIPE signal If you read one channel, adapter kit, FIFO and other equipment, when connected into the closed end, you will be at the end of a document (EOF) (read () return zero byte read).
If you want to set adapter into a pipe or, when reading the closed link, you will get a SIGPIPE signal that the process would end unless it is specified to handle the matter. (If you choose to ignore or signal shielding, write () to withdraw from EPIPE wrong. )
-----------------------------------
The question is :
Read a good time, into how we should handle? ? ?
A relevant source? |
How to handle SIGPIPE signal The only judgment recv () "0 |
How to handle SIGPIPE signal Of course we need to address in the send time.
SIGPIPE not signal processing,
Withdrew from the process. .
I will signal processing, sigaction function can be used to capture,
But the key question is, I used kylix3 compiler.
Kylix caught by the wrong message.
How? |
| |