delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/25/11:11:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "D. N. Knisely" <dnk AT lucent DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: cygwin-1.3.11-3 Problem with Privoxy
Date: Tue, 25 Jun 2002 10:11:11 -0500
Message-ID: <LOEFIDOJKFHHHOOHLIHJGEIOCGAA.dnk@lucent.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <20020625012539.GI32490@redhat.com>
Importance: Normal

I don't think that multiple versions of cygwin1.dll is the problem.
Coincidentally, this system is a recent clean install of XP without too much
built-up crud.  I searched and found one extra copy (that came along with
xplanet), but that wasn't running.  Even after deleting it, the same problem
occurs:

Jun 25 14:00:31 Privoxy(1628300860) Error: can't fork: No error

Further inspection of privoxy suggests that whoever added CYGWIN hooks chose
to use threads rather than forking, so it is actually a Posix threads
problem.  When I disabled Posix thread use (which reverts to using fork), it
started working with 1.3.11.  Here is the code that no longer works; I have
no experience with Posix threads:

#if defined(FEATURE_PTHREAD) && !defined(SELECTED_ONE_OPTION)
#define SELECTED_ONE_OPTION
         {
            pthread_t the_thread;
            pthread_attr_t attrs;

            pthread_attr_init(&attrs);
            pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED);
            child_id = (pthread_create(&the_thread, &attrs,
               (void*)serve, csp) ? -1 : 0);
            pthread_attr_destroy(&attrs);
         }
#endif

child_id is ending up as -1.  Did anything change in this area in 1.3.11?

Doug Knisely


>> On Mon, Jun 24, 2002 at 02:10:01PM -0500, D. N. Knisely wrote:
>> >I installed the new cygwin-1.3.11-3 libraries today.  I have been
running an
>> >OOTB build of privoxy (version 2.9.14), and it suddenly stopped working.
>> >The error indicates that it can't fork with no error code (?) (it
appears to
>> >spawn a process when a new proxy access occurs).

>> Sounds a lot like the dreaded "two versions of cygwin1.dll on your
system"
>> problem.

>> cgf


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019