Trojan Horses

Boyd Roberts boyd at necisa.ho.necisa.oz
Thu Oct 25 10:17:11 AEST 1990


In article <5238:Oct2322:14:3690 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
>
>And if something is not documented as returning error X, and there's no
>logical reason to expect it to, and there's no good way to handle the
>error if it does come up?
>

Dan, you twist and turn -- like a twisty turny thing.

A decent interface returns ok or error.  Now there may be multiple error
classes, but all you want to distinguish is success or failure.  Failure
is usually disaster, but in some cases you can act on the error type and
try to recover.

What are you trying to say?  A new type of error has occured and because
you aren't prepared for it you say ``there's no good way to handle [it]''.
Are you saying that you treat it as success or do you just ignore it?

Surely you mean that if you don't know how to handle a specific recovery
(for some unspecified error type) it's still treated as failure?


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.internals mailing list