Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
5694b71b11
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/core/resolv.c

+ 1
- 2
src/core/resolv.c View File

@@ -88,14 +88,13 @@ struct numeric_resolv {
88 88
 
89 89
 static void numeric_step ( struct numeric_resolv *numeric ) {
90 90
 
91
-	process_del ( &numeric->process );
92 91
 	if ( numeric->rc == 0 )
93 92
 		resolv_done ( &numeric->resolv, &numeric->sa );
94 93
 	intf_shutdown ( &numeric->resolv, numeric->rc );
95 94
 }
96 95
 
97 96
 static struct process_descriptor numeric_process_desc =
98
-	PROC_DESC ( struct numeric_resolv, process, numeric_step );
97
+	PROC_DESC_ONCE ( struct numeric_resolv, process, numeric_step );
99 98
 
100 99
 static int numeric_resolv ( struct interface *resolv,
101 100
 			    const char *name, struct sockaddr *sa ) {

Loading…
Cancel
Save