Avatar of cossy74
cossy74

asked on 

apr Socket and broken pipe exception

I am using apr, the apache portable runtime library, and am getting a broken pipe exception. My problem is that nothing i am trying catches this execption.
Can anyone help? I need the catch statement with it exception type.
C++

Avatar of undefined
Last Comment
cossy74
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of cossy74
cossy74

ASKER

Infinity08: I found that this works

// #include <signal.h>
signal(SIGPIPE, SIG_IGN);

Basically it tell the processor to ignore the broken pipe error

Thanks for your help..... :)
C++
C++

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

58K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo