]> arthur.barton.de Git - ngircd-alex.git/commitdiff
don't call Resolve_Shutdown() when io_event_create fails [from HEAD]
authorFlorian Westphal <fw@strlen.de>
Sun, 17 Dec 2006 22:59:56 +0000 (22:59 +0000)
committerFlorian Westphal <fw@strlen.de>
Sun, 17 Dec 2006 22:59:56 +0000 (22:59 +0000)
src/ngircd/resolve.c

index a145fdf39fc94bd1c9c408ad4b1c27e7e18b696c..e254dcd49ae4d722482d2bd6eb3fe58ab503d20e 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: resolve.c,v 1.24.2.1 2006/12/02 13:00:25 fw Exp $";
+static char UNUSED id[] = "$Id: resolve.c,v 1.24.2.2 2006/12/17 22:59:56 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -313,7 +313,8 @@ register_callback( RES_STAT *s, void (*cbfunc)(int, short))
                        return true;
 
        Log( LOG_CRIT, "Resolver: Could not register callback function: %s!", strerror(errno));
-       Resolve_Shutdown(s);
+       close(s->resolver_fd);
+       Resolve_Init(s);
        return false;
 }
 
@@ -333,7 +334,7 @@ Resolve_Shutdown( RES_STAT *s)
        return ret;
 }
 
-                
+
 /**
  * Read result of resolver sub-process from pipe
  */