]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[resolv] Use a one-shot process for the numeric resolver
authorMichael Brown <mcb30@ipxe.org>
Fri, 24 Jun 2011 15:45:28 +0000 (16:45 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jun 2011 13:45:09 +0000 (14:45 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/resolv.c

index 9edfceadcd366777d9495bf84d6c5dc0be3e6eac..31e80aab694f3dd18390f5fd1b303aebdbc15bad 100644 (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 ) {