Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37898070
en ru br
Репозитории ALT
5.1: 2.86-alt2
4.1: 2.86-alt2
4.0: 2.86-alt1
3.0: 2.85-alt8
www.altlinux.org/Changes

Группа :: Система/Настройка/Загрузка и инициализация
Пакет: SysVinit

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

Патч: sysvinit-2.86-deb-init-msg.patch
Скачать


#! /bin/sh /usr/share/dpatch/dpatch-run
## 61_init_msg.dpatch by Petter Reinholdtsen
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Improve error message if fork() fail.  Patch found in Suse.
@DPATCH@
Index: sysvinit/src/init.c
===================================================================
--- sysvinit/src/init.c	(revisjon 62)
+++ sysvinit/src/init.c	(arbeidskopi)
@@ -967,7 +967,8 @@
   				dup(f);
 			}
 			if ((pid = fork()) < 0) {
-  				initlog(L_VB, "cannot fork");
+  				initlog(L_VB, "cannot fork: %s",
+					strerror(errno));
 				exit(1);
 			}
 			if (pid > 0) {
@@ -997,7 +998,8 @@
 				 *	this with a temporary process.
 				 */
 				if ((pid = fork()) < 0) {
-  					initlog(L_VB, "cannot fork");
+  					initlog(L_VB, "cannot fork: %s",
+						strerror(errno));
 					exit(1);
 				}
 				if (pid == 0) {
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin