Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37765036
en ru br
ALT Linux repositórios
S:1.2.9a-alt2
5.0: 1.2.7-alt1
4.1: 1.2.6-alt1
4.0: 1.2.5-alt1
3.0: 1.2-alt1

Group :: Sistema/Servidores
RPM: pdnsd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: pdnsd-1.2.5-alt-stat_sock.patch
Download


--- pdnsd-1.2.5/src/status.c.orig	2006-12-09 19:35:24 +0500
+++ pdnsd-1.2.5/src/status.c	2006-12-09 19:38:12 +0500
@@ -182,6 +182,8 @@
 		}
 	}
 
+	if (stat_sock == -1)
+		return NULL;
 	if (listen(stat_sock,5)==-1) {
 		log_warn("Error: could not listen on socket: %s.\nStatus readback will be impossible",strerror(errno));
 		goto exit_thread;
@@ -662,6 +664,7 @@
  exit_thread:
 	stat_pipe=0;
 	close(stat_sock);
+	stat_sock = -1;
 	statsock_thrid=main_thrid;
 
 	return NULL;
@@ -706,6 +709,7 @@
 		if (bind(stat_sock,(struct sockaddr *)sa,sa_len)==-1) {
 			log_warn("Error: could not bind socket: %s.\nStatus readback will be impossible",strerror(errno));
 			close(stat_sock);
+			stat_sock = -1;
 			stat_pipe=0;
 		}
 		umask(old_mask);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009