Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37576309
en ru br
Репозитории ALT
S:1.2.9a-alt2
5.1: 1.2.7-alt1
4.1: 1.2.6-alt1
4.0: 1.2.5-alt1
3.0: 1.2-alt1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: pdnsd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: pdnsd-1.2.5-alt-stat_sock.patch
Скачать


--- 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);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin