Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37567984
en ru br
ALT Linux repos
S:3.2.1-alt1

Group :: File tools
RPM: cstream

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: cstream-3.2.1-rh-meh.patch
Download


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++;
 }
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin