• # Ça marche pas.

    Posté par . En réponse au journal SIGUSR1, SIGUSR2,..., SIGUSR_N ?. Évalué à 7.

     Queueing and delivery semantics for standard signals
     If multiple standard signals are pending for a process, the
     order in which the signals are delivered is unspecified.
     Standard signals do not queue. If multiple instances of a
     standard signal are generated while that signal is blocked,
     then only one instance of the signal is marked as pending (and
     the signal will be delivered just once when it is unblocked).
     In the case where a standard signal is already pending, the
     siginfo_t structure (see sigaction(2)) associated with that
     signal is not overwritten on arrival of subsequent instances of
     the same signal. Thus, the process will receive the
     information associated with the first instance of the signal.
    

    La bonne méthode :
    1. Avoir un thread à demeure qui se met en lecture sur une FIFO.
    2. Ou déclencher la lecture de la FIFO à réception du signal (évite de créer un thread dédié).