Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev
APR cross-platform signal semantics
 

Index | Next | Previous | View Flat


nick at webthing

Feb 4, 2006, 9:24 AM


Views: 1345
Permalink
APR cross-platform signal semantics

Historically, different platforms have different signal semantics.

I need to set up a signal handler. The primary targets are
Linux and Solaris, but I'd much prefer cross-platform. And I'd
like it to be MPM-agnostic in httpd, though the prime target
is Worker.

Is the following correct and complete for APR signals
to function across platforms?

static void my_handler(int signum) {
apr_signal_block(signum) ;
/* do things */
apr_signal_unblock(signum) ;
}

static void my_child_init(args) {
apr_signal(MY_SIGNAL, my_handler);
}


--
Nick Kew

Subject User Time
APR cross-platform signal semantics nick at webthing Feb 4, 2006, 9:24 AM
    Re: APR cross-platform signal semantics rooneg at electricjellyfish Feb 4, 2006, 10:12 PM
    Re: APR cross-platform signal semantics nick at webthing Feb 5, 2006, 8:09 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.