Broken pipe on Solaris 8
- From: "Henrik Goldman" <henrik_goldman@xxxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 13:50:54 +0100
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
.
- Follow-Ups:
- Re: Broken pipe on Solaris 8
- From: hume . spamfilter
- Re: Broken pipe on Solaris 8
- Prev by Date: Re: How do I determine the home directory of a shell script from ?within the script
- Next by Date: Re: ntp in Solaris10 does not work with ntp in Sol9
- Previous by thread: Redudant parts
- Next by thread: Re: Broken pipe on Solaris 8
- Index(es):