Quote:
|
Originally Posted by andhow
Ahh, thank you. I know there isn't a black and white answer, but in general, are these the type of exceptions that occur when the system is in a bad state, perhaps it has run out of some threading resource, in which case the application should shut down?
|
The MS documentation for WaitForSingleObject is pretty useless in the case of a WAIT_FAILURE error return value. I'm not sure that I've ever seen this error condition myself... so I think it would indicate something very usual has occurred.
As to EINTR, I'm afraid its not possible to give a concrete answer to this without knowing more about your application and its setup. Basically EINTR occurs when the system call is interrupted. If you use signals, and depending how your application sets up the signal state (and whether your flavour of UNIX is POSIX compliant or not) and how it uses signals (I recommend, btw, to stay away from them if at all possible) its possible and sometimes expected for the system call to be interrupted. Is that a sufficiently hand-wavy explanation?
Regards, Matthew