tags:

views:

25

answers:

0

Possible Duplicate:
How do I receive a signal sent with sigqueue in a c program (on linux)?

Hi

How do I receive receive a signal sent with sigqueue in a c program (on linux)?

If just use kill to send a signal I just add a receiver with something like this

signal(SIGUSR1,  sigusr1);

that point to a simple function like this:

void sigusr1() 
{  
    signal(SIGUSR1,sigusr1);
    printf("SIGUSR1 ....\n");
}

But if I send a signal with sigqueue, how would I do then?

Thanks Johan