2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-02-12 00:29:43 +00:00

[resolv] Use a one-shot process for the numeric resolver

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-06-24 16:45:28 +01:00
parent ccc2655540
commit 5694b71b11

View File

@ -88,14 +88,13 @@ struct numeric_resolv {
static void numeric_step ( struct numeric_resolv *numeric ) {
process_del ( &numeric->process );
if ( numeric->rc == 0 )
resolv_done ( &numeric->resolv, &numeric->sa );
intf_shutdown ( &numeric->resolv, numeric->rc );
}
static struct process_descriptor numeric_process_desc =
PROC_DESC ( struct numeric_resolv, process, numeric_step );
PROC_DESC_ONCE ( struct numeric_resolv, process, numeric_step );
static int numeric_resolv ( struct interface *resolv,
const char *name, struct sockaddr *sa ) {