Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37773816
en ru br
Репозитории ALT
S:3.2.1-alt1
5.1: 2.7.6-alt1
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: cstream

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

Патч: cstream-3.2.1-rh-meh.patch
Скачать


Ignore write errors inside sighup()
--- cstream-3.0.0/cstream.c	2011-09-12 12:38:46.535528045 +0200
+++ cstream-3.0.0/cstream.c.fixed	2011-09-12 12:40:31.389644368 +0200
@@ -278,7 +278,10 @@
 static void
 sighup(int signal)
 {
-  int meh = write(2, "SIGHUP\n", sizeof("SIGHUP\n") - 1);
+  const ssize_t meh = write(2, "SIGHUP\n", sizeof("SIGHUP\n") - 1);
+  if (meh != sizeof("SIGHUP\n")) {
+    /* ignore write error */
+  }
   n_sighups++;
 }
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin