From cc5f1097d3c516121e6504bae8635bf8456a0955 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 14 Mar 2000 03:38:54 +0000 Subject: [PATCH] set the waitresult in the generic_signalhandler when "status" signal received --- lib/omapi/generic.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/omapi/generic.c b/lib/omapi/generic.c index 7299d8513b..f7e5413337 100644 --- a/lib/omapi/generic.c +++ b/lib/omapi/generic.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: generic.c,v 1.10 2000/02/03 23:14:31 halley Exp $ */ +/* $Id: generic.c,v 1.11 2000/03/14 03:38:54 tale Exp $ */ /* Principal Author: Ted Lemon */ @@ -189,9 +189,17 @@ generic_destroy(omapi_object_t *h) { static isc_result_t generic_signalhandler(omapi_object_t *h, const char *name, va_list ap) { - REQUIRE(h != NULL && h->type == omapi_type_generic); + /* + * XXXDCL I suppose that ideally the status would be set in all + * objects in the chain. + */ + if (strcmp(name, "status") == 0) { + h->waitresult = va_arg(ap, isc_result_t); + return (ISC_R_SUCCESS); + } + return (omapi_object_passsignal(h, name, ap)); }