Skip to content

Commit

Permalink
[resolv] Use a one-shot process for the numeric resolver
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jun 28, 2011
1 parent ccc2655 commit 5694b71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/resolv.c
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 5694b71

Please sign in to comment.