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

index ec993037cb6c6badf96b54395edfee9bd605aa35..d2c01775dfa4aa280d81edc9e10c89c2cee795fa 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: resolve.c,v 1.25 2006/08/12 11:54:23 fw Exp $";
+static char UNUSED id[] = "$Id: resolve.c,v 1.26 2006/12/17 22:50:51 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
  */