Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why do I keep getting EINTR from the socket calls?

Answer Posted / chaitanya

This isn't really so much an error as an exit condition. It means that the call was interrupted by a signal. Any call that might block should be wrapped in a loop that checkes for EINTR, as is done in the example code .

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of socket?

909


What is a socket file?

883


Why does it take so long to detect that the peer died?

1507


Where is the socket located?

887


How many socket connections can a server handle?

845


Why do I get EPROTO from read()?

1435


Can multiple clients connect to same socket?

895


How can I force a socket to send the data in its buffer?

1605


What is the difference between SO_REUSEADDR and SO_REUSEPORT?

1792


Why sockets are used?

884


Are unix sockets faster than tcp?

844


How can I write a multi-homed server?

1637


How is a socket created?

904


What pieces of information make up a socket?

948


How does a socket work?

855