2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

further changes for

1848.   [bug]           Improve SMF integration. [RT #13238]
This commit is contained in:
Mark Andrews
2005-04-29 00:36:16 +00:00
parent 69fe9aaafd
commit 2e740e169d
4 changed files with 29 additions and 42 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.441 2005/04/27 04:55:54 sra Exp $ */
/* $Id: server.c,v 1.442 2005/04/29 00:36:15 marka Exp $ */
/*! \file */
@@ -4239,18 +4239,4 @@ ns_smf_add_message(isc_buffer_t *text) {
isc_buffer_add(text, n);
return (ISC_R_SUCCESS);
}
isc_result_t
ns_smf_disable(const char *ins_name) {
if (ins_name == NULL)
return (ISC_R_UNEXPECTED);
if (smf_disable_instance(ins_name, 0) != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"smf_disable_instance() failed: %s",
scf_strerror(scf_error()));
return (ISC_R_FAILURE);
}
return (ISC_R_SUCCESS);
}
#endif /* HAVE_LIBSCF */