Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:49:11+00:00 2026-06-14T09:49:11+00:00

My client will loop send the package to server. the client program don’t catch

  • 0

My client will loop send the package to server. the client program don’t catch the SIGPIPE.
(client os is ubuntu server 12.04 LTS)

I do the following test:

  1. After the 3 handshakes is finished. Then client will send some packages to server.
    server can receive the packages normal.

  2. Then i suddenly kill the server process.

  3. The client process is dead. But I don’t see any log show “Broken pipe”.

I think the bash will report the dead cause.

Why the bash don’t print the “Broken pipe” log after process dead ?

But i start the process using the gdb, repeat the upper steps . the process dead ,and gdb show the following log:

“Program received signal SIGPIPE, Broken pipe.”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:49:12+00:00Added an answer on June 14, 2026 at 9:49 am

    If the client doesn’t catch SIGPIPE, then it can’t possibly print an error message! Messages of the form “Broken pipe” are printed by the program that receives the SIGPIPE in response to either a write error or as a response to the signal. Since your client is not handling SIGPIPE, it is not printing that error message, but just terminating. When you run within gdb, gdb is telling you that the child process terminated because of a SIGPIPE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running a multithreaded socket program with valgrind. The client will send out a
I have the following (simplified) architecture: client(s) --> bouncer --> server The clients send
I am developing a socket server where a client will be bound after being
I am developing a Client-Server based application in which client application will access server
I have client/server application where the client app will open files. Those files get
I need to develop an ANDROID client that will communicate with the server that
The requirement of the TCP server: receive from each client and send result back
I write client-server application. Client will run on android and server on plain java.
I am trying to write a client/server program in C for a homework assignment.
Im creating a server client program where client sends certain information to the server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.