OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 12:14 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 46 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Kevin Miller
Post subject: Signal 13 on a socket connection?  PostPosted: Feb 11, 2008 - 10:49 PM
Guest





I have a task that terminated on a signal 13, "broken pipe". It did not
have a pipe open, but it was using a socket connection to another
computer on the LAN. Any idea what this would mean?

Thanks,

Kevin
 
   
Reply with quote Back to top
Robert Craig
Post subject: Re: Signal 13 on a socket connection?  PostPosted: Feb 11, 2008 - 10:55 PM
Guest





Hi Kevin:

If one end of a TCP socket is closed or gets killed and the other end
attempts to send to it, a broken pipe error should occur. You should
check and see if the associated connection on the other computer is
still alive.

Robert.



Kevin Miller wrote:
Quote:
I have a task that terminated on a signal 13, "broken pipe". It did not
have a pipe open, but it was using a socket connection to another
computer on the LAN. Any idea what this would mean?

Thanks,

Kevin
 
   
Reply with quote Back to top
seanb
Post subject: Re: Signal 13 on a socket connection?  PostPosted: Feb 12, 2008 - 12:22 PM
QNX Master


Joined: Jul 28, 2006
Posts: 67

If you set signal(SIGPIPE, SIG_IGN); the send() / write()
will fail with -1 and errno EPIPE.

-seanb

Robert Craig <rcraig_at_qnx@nowhere.com> wrote:
Quote:
Hi Kevin:

If one end of a TCP socket is closed or gets killed and the other end
attempts to send to it, a broken pipe error should occur. You should
check and see if the associated connection on the other computer is
still alive.

Robert.



Kevin Miller wrote:
I have a task that terminated on a signal 13, "broken pipe". It did not
have a pipe open, but it was using a socket connection to another
computer on the LAN. Any idea what this would mean?

Thanks,

Kevin
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.