scsh-users
[Top] [All Lists]

[0.4.2] herror handler?

To: scsh@martigny.ai.mit.edu
Subject: [0.4.2] herror handler?
From: glenn@mathcs.emory.edu (Glenn Barry)
Date: Fri, 1 Dec 1995 04:52:01 -0500
Cc: glenn@cssun.mathcs.emory.edu
Organization: Emory University, Dept of Math and CS
Reply-to: glenn@mathcs.emory.edu (Glenn Barry)
hi scsh hackers and fans,

When host-info is fed a hostname that does not exists, it looks
like this:

> (host-info "blah")

Error: name->host-info: non-zero herrno ~s ~s
       1
       #f
>

That is, it fails and according to page 92 of the 0.4.2 manual, it
will raise an error for one of the following reasons:

          herror/host-not-found
          herror/try-again
          herror/no-recovery
          herror/no-data
          herror/no-address

So the question is:  how can we gracefully handle these errors?  Is
there anything analogous to with-errno-handler available now or
in the near future for herror?

thx for any insight and all the good work on scsh,
glenn




<Prev in Thread] Current Thread [Next in Thread>
  • [0.4.2] herror handler?, Glenn Barry <=