]> git.pld-linux.org Git - packages/squid.git/blob - squid-crash-on-ENOSPC.patch
do not use builder's CPU instruction set, leads to SIGILL on older x86_64
[packages/squid.git] / squid-crash-on-ENOSPC.patch
1 --- squid-4.2//src/log/ModStdio.cc~     2018-08-05 16:13:41.000000000 +0200
2 +++ squid-4.2//src/log/ModStdio.cc      2018-09-20 20:19:38.877856849 +0200
3 @@ -46,7 +46,11 @@ logfileWriteWrapper(Logfile * lf, const
4      if (!lf->flags.fatal)
5          return;
6  
7 -    fatalf("logfileWrite: %s: %s\n", lf->path, xstrerr(xerrno));
8 +#if HAVE_SYSLOG
9 +    syslog(LOG_ALERT, "logfileWrite: %s: %s", lf->path, xstrerr(xerrno));
10 +#else
11 +    debugs(50, 1, "logfileWrite: " << lf->path << ": " << xstrerr(xerrno));
12 +#endif
13  }
14  
15  static void
This page took 0.057632 seconds and 3 git commands to generate.