timer and signal handlers

timer and signal handlers

Post by Cheryl Dematte » Wed, 13 Sep 1995 04:00:00



I'm working on a program which uses quick-threads under solaris.  The
virtual timer is not working properly.  Anyone out there have experience
with signal handlers and the virtual timer under solaris 2.4?

--
Cheryl K. DeMatteis                           (at work)
Graduate Student                              The Aerospace Corporation, M1/102
Department of Computer Science                Computer Science and Technology
University of California                      2350 E. El Segundo Blvd.
Riverside, CA 92521                           El Segundo, CA 90245-4691

http://corsa.ucr.edu/~cdematt                 (310)336-1189
(909)787-2916 (lab)                           (310)336-4402 (fax)

 
 
 

1. Signal handlers inside signal handlers

Greetings Netters,

Unfortunately, the project I'm working on requires I mess with nested signal
handlers, and I've checked out obvious manuals and the POSIX std for clues,
but I'm having no luck.

What I'm trying to do is within a signal handler, plant another handler.
For example

#include        blah blah blah

foo2( int signo )
{
        printf("Caught the second sigalrm\n");

foo1( int signo )
{
        printf("Caught the first sigalrm\n");
        signal( SIGARLM, foo2 );
        alarm(1);

        for (;;)
                ;

main()
{
        signal( SIGALRM, foo1 );
        alarm(3);

        /* Wait for the first alarm */
        sleep(10);

The above program when run, prints the message from function foo1
but never reaches foo2.  Note that my project dictates that I can't
exit foo2, until foo1 has run.
I've tried messing with posix signals (sigaction etc), but have the
same problem.

Has anyone tried to do this sort of thing before??

Thanks in advance,
Scott Wallace

2. newbie question

3. Sparc's timer/signal handler

4. problems with apache and POP

5. Threads performance - allow signal handler to not call handler

6. Cern Server Problems...

7. Signal handlers are not reset after signal delivery

8. Tecra 500CDT & 3c589 & Solaris 2.5.1

9. blocking signals in signal handler -- True or False quiz

10. Registering signal inside signal handler

11. Registering client data on signal manager side andreceiving it in signal handler

12. --- called from signal handler with signal -24242176 (SIG Unknown)

13. signal mask and signal handler