Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37650376
en ru br
Репозитории ALT
S:4.1.20060426-alt10.3
5.1: 4.1.20060426-alt6
4.1: 4.1.20060426-alt4
4.0: 4.1.20060426-alt4
3.0: 4.1.20040916-alt2
www.altlinux.org/Changes

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

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

Патч: vixie-cron-4.1.20040916-alt-sigpipe.patch
Скачать


diff -uprk.orig vixie-cron-4.1.20040916.orig/usr.sbin/cron/atrun.c vixie-cron-4.1.20040916/usr.sbin/cron/atrun.c
--- vixie-cron-4.1.20040916.orig/usr.sbin/cron/atrun.c	2004-11-03 01:27:46 +0300
+++ vixie-cron-4.1.20040916/usr.sbin/cron/atrun.c	2004-11-03 01:28:00 +0300
@@ -492,6 +492,9 @@ run_job(atjob *job, char *atfile)
 		}
 #endif /*DEBUGGING*/
 
+		(void) signal(SIGPIPE, SIG_DFL);
+		(void) signal(SIGUSR1, SIG_DFL);
+
 		/*
 		 * Exec /bin/sh with stdin connected to the at job file
 		 * and stdout/stderr hooked up to our parent.
diff -uprk.orig vixie-cron-4.1.20040916.orig/usr.sbin/cron/do_command.c vixie-cron-4.1.20040916/usr.sbin/cron/do_command.c
--- vixie-cron-4.1.20040916.orig/usr.sbin/cron/do_command.c	2004-11-03 01:27:46 +0300
+++ vixie-cron-4.1.20040916/usr.sbin/cron/do_command.c	2004-11-03 01:28:00 +0300
@@ -253,6 +253,9 @@ child_process(entry *e, user *u) {
 #endif /* LOGIN_CAP */
 		chdir(env_get("HOME", e->envp));
 
+		(void) signal(SIGPIPE, SIG_DFL);
+		(void) signal(SIGUSR1, SIG_DFL);
+
 		/*
 		 * Exec the command.
 		 */
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin