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
 
88
 
89
 static void numeric_step ( struct numeric_resolv *numeric ) {
89
 static void numeric_step ( struct numeric_resolv *numeric ) {
90
 
90
 
91
-	process_del ( &numeric->process );
92
 	if ( numeric->rc == 0 )
91
 	if ( numeric->rc == 0 )
93
 		resolv_done ( &numeric->resolv, &numeric->sa );
92
 		resolv_done ( &numeric->resolv, &numeric->sa );
94
 	intf_shutdown ( &numeric->resolv, numeric->rc );
93
 	intf_shutdown ( &numeric->resolv, numeric->rc );
95
 }
94
 }
96
 
95
 
97
 static struct process_descriptor numeric_process_desc =
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
 static int numeric_resolv ( struct interface *resolv,
99
 static int numeric_resolv ( struct interface *resolv,
101
 			    const char *name, struct sockaddr *sa ) {
100
 			    const char *name, struct sockaddr *sa ) {

Loading…
Cancel
Save