Hi, I am developing an application in cocoa which consists of a client part written in java listens for a request from server (like reading some songs or files from client machine) sometimes this works fine but some times an Exception like "Recieved Signal SIGPIPE" occurs .I have no idea about this exception and how to handle this Thanks in advance...
Not exactly. In fact, it's not even necessary to have another process.
Peter Hosey
2009-08-18 07:25:01
+1
A:
SIGPIPE means you attempted to write to a pipe, but nobody holds the read end. You closed your read end, and either you didn't create a child process before doing that or the child process has also closed its read end.
Peter Hosey
2009-08-18 07:21:37
You can also set `SIGPIPE` to `SIG_IGN` and have `write()` or `send()` fail with `errno = EPIPE`. I like this a lot better.
asveikau
2010-03-04 10:06:39