Broken pipe on Solaris 8



Hello,

I'm writing a tcp/ip client server application and have to my surprise seen
a broken pipe problem recently.
Essentially the process quit with broken pipe.

However I have the following code in place which works on most other unix
platforms (linux, mac, hp-ux, aix, etc) that the software is compiled on.
I'm only seeing this problem on Solaris 8 on sparc:

struct sigaction act, oact;

act.sa_handler = SIG_IGN;

sigemptyset(&act.sa_mask);

act.sa_flags = 0;

sigaction(SIGPIPE, &act, &oact);

send/recv call...

sigaction(SIGPIPE, &oact, NULL);

Is there another way on solaris I could disable SIGPIPE?

Thanks.

-- Henrik

Our blog on software license management - http://blog.x-formation.com
http://www.x-formation.com




.