summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2012-02-19 10:36:43 -0800
committerRuss Allbery <rra@stanford.edu>2012-02-19 10:37:49 -0800
commit16cae416b11482468d024a009acf55c063ffafc7 (patch)
tree0c651a8c5c84765c42108a01af1c8b37662df730 /client
parentb1b071fed1a4c9a3cf4c3aa3861ac734498a7346 (diff)
Map timeout errors to a token error code
Set up a general framework for mapping certain errno values to token error codes, also used for EOF, and map the timeout error to the corresponding token error code so that special action can be taken where appropriate. Update the logging functions for client and server to recognize the new token error code. Change-Id: Ibc2a38574657273ec92c9af5806177ac8f11556a
Diffstat (limited to 'client')
-rw-r--r--client/error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/error.c b/client/error.c
index ed8863b..f7a5a38 100644
--- a/client/error.c
+++ b/client/error.c
@@ -95,6 +95,9 @@ internal_token_error(struct remctl *r, const char *error, int status,
case TOKEN_FAIL_GSSAPI:
internal_gssapi_error(r, error, major, minor);
break;
+ case TOKEN_FAIL_TIMEOUT:
+ internal_set_error(r, "error %s: timed out", error);
+ break;
default:
internal_set_error(r, "error %s: unknown error", error);
break;