Re: Completion of error handling
- From
Nicolas Pitre <nico@fluxnic.net>
- Date
- Feb 2, 2010, 19:27 UTC
- Message-ID
- <alpine.LFD.2.00.1002021424550.1681@xanadu.home>
- In-Reply-To
- <4B6873AC.4030303@web.de>
On Tue, 2 Feb 2010, Markus Elfring wrote:
Show 6 quoted lines
> > > What is the likelihood for those function calls to actually fail? > > Do you know the probability for failed memory allocations? > > Would you like to care for error codes from all Pthread function calls?
Not necessarily. At least on Linux, most of those functions simply cannot fail. There is just no dynamic memory allocation involved. All other errors are normally due to bad code.
Nicolas