Russ Cox wrote:
what if your create failed due to some other process having the process
leak, and you'd like your process, which has done nothing wrong, to get
out of the mess cleanly?


Then you will need to change the thread library and then
edit all the programs that use it to check the return values
on threadcreate and proccreate.

or ....

provide versions of the functions that return on error, for those cases where they are needed. And then have the "normal" function call this function, and on failure, act as it acts now (i.e. exit)?

I realize that just blowing the process away on this type of failure is a very reasonable thing to do, but in a very few cases here, we need to recover and stumble along in the case of such failure, and try to at least get to a sane state before dying.

ron

Reply via email to