repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 23e7f7f0dd55d140aca91ace6102e714cba5bbd0:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 23e7f7f0dd55d140aca91ace6102e714cba5bbd0
Author: Florian Westphal 
Date:   Sun Dec 17 22:50:51 2006 +0000

    don't call Resolve_Shutdown() when io_event_create fails

diff --git a/src/ngircd/resolve.c b/src/ngircd/resolve.c
index ec993037cb6c6badf96b54395edfee9bd605aa35..
index ..d2c01775dfa4aa280d81edc9e10c89c2cee795fa 100644
--- a/src/ngircd/resolve.c
+++ b/src/ngircd/resolve.c
@@ -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 
@@ -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
  */

-----END OF PAGE-----