FreeBSD Port: squid-3.1.3

Anton Kaukin akaukin at rbc.ru
Wed May 26 08:44:23 UTC 2010


Hello, tmseck!


If I've started squid from root and after that sends an any signal to 
this processes from cron scripts running from squid user, I've receiving 
this messages on FreeBSD 8.0-STABLE #1: Fri Jan 29 18:44:50 MSK 2010 amd64:

squid: ERROR: Could not send signal 30 to process 78774: (1) Operation 
not permitted

after some debugging procedures there was found bug in configure script: 
it can not correctly detect presence of setresuid() OS function due a 
lack of includes directives in test program.

Please commit this patch to www/squid31 port.



# cat files/patch-configure
--- configure.orig	2010-03-16 17:08:43.000000000 +0300
+++ configure	2010-03-16 17:08:53.000000000 +0300
@@ -48517,6 +48517,10 @@
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */

+#include <sys/types.h>
+#include <unistd.h>
+#include <stdio.h>
+
  #include <stdlib.h>
    int main(int argc, char **argv) {
      if(setresuid(-1,-1,-1)) {


Thanks! )


--

Best regards,
  Anton Kaukin,
  RosBusinessConsulting NOC
  Tel: +7 495 3631111 (ext.: 2314)
  E-mail: akaukin at rbc.ru | http://www.rbc.ru




More information about the freebsd-ports mailing list