> >
> > Did apr-1.2.x even know about APR_POLLSET_THREADSAFE?
> >
>
> I've just been referring to the online API docs, I didn't see version
> information for this feature.
>
> However, it definitely makes a differences if it is enabled
> or not. If
> I don't have this option, then gmond die
> I've now added this check, and apr_pollset_create is returning
> APR_SUCCESS
>
> The seg fault only occurs after the first socket is added to the
> pollset, maybe there is another place where return
> codes are ignored?
>
>
> Hmmm... I see that poll() or select
On Thu, Mar 26, 2009 at 8:24 PM, wrote:
>
> > APR_POLLSET_THREADSAFE isn't supported with all
> > implementations. I expect that apr_pollset_create() is
> > returning APR_ENOTIMPL, and the crash is due to an
> > uninitialized pollset.
>
> Excellent point - I should have checked for a return code
> APR_POLLSET_THREADSAFE isn't supported with all
> implementations. I expect that apr_pollset_create() is
> returning APR_ENOTIMPL, and the crash is due to an
> uninitialized pollset.
Excellent point - I should have checked for a return code, there are a
few cases like this in Ganglia where
On Thu, Mar 26, 2009 at 3:54 PM, wrote:
I've got Cygwin's libapr1 1.3.3-1
>
> I've built Ganglia (3.1.0) from source and it works.
>
> I then modify this line of code in gmond.c, adding the flag
> APR_POLLSET_THREADSAFE:
>
> apr_pollset_create(&listen_channels, total_listen_channels,
> global_co
Hi,
I've got Cygwin's libapr1 1.3.3-1
I've built Ganglia (3.1.0) from source and it works.
I then modify this line of code in gmond.c, adding the flag
APR_POLLSET_THREADSAFE:
apr_pollset_create(&listen_channels, total_listen_channels,
global_context, APR_POLLSET_THREADSAFE);
Now, after add