You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Marco Spinetti <m....@pisa.iol.it> on 2005/11/16 16:22:23 UTC
apr signal handling
Hi all,
I'm quite confused about apr signal handling....
I'd like to handle signals with apr functions but I don't find how.
I have an 1.3 apache module which starts 3 threads: I suppose that my
main process has to block all signals.
How can I do it with apr functions?
I'm using apr 1.2.1
rv = *apr_setup_signal_thread*();
..... what other?.....
In my non apr code I was using:
sigfillset( &signal_set );
if (pthread_sigmask( SIG_BLOCK, &signal_set, NULL ) == -1) {
exit(EXIT_FAILURE);
}
Then I created a signal handling thread.
Any hints?
Thanks for the support
--Marco
Re: apr signal handling
Posted by Marco Spinetti <m....@pisa.iol.it>.
Yes I looked at it.
But I don't understand how to use it.
Moreover I went into test directory and the only file I found which
uses signals is sendfile.c
#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN);
#endif
But how can I block all signals?
--Marco
Garrett Rooney wrote:
>On 11/16/05, Marco Spinetti <m....@pisa.iol.it> wrote:
>
>
>
>>Any hints?
>>
>>
>
>Did you look at the apr_signal.h header? It seems pretty straitforward to me...
>
>-garrett
>
>
>
Re: apr signal handling
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 11/16/05, Marco Spinetti <m....@pisa.iol.it> wrote:
> Any hints?
Did you look at the apr_signal.h header? It seems pretty straitforward to me...
-garrett