pulse_attach

I have created a resource manager.
Called pulse_attach once as follows:
if((code = pulse_attach(dpp, MSG_FLAG_ALLOC_PULSE, 0,
&Self_Timer_Tick, NULL)) == -1) {
fprintf(stderr, “Unable to attach timer pulse.\n”);
return EXIT_FAILURE;
}
value of code returned is 0.
However I have found that my pulse handler (Self_Timer_Tick)also responds to
a pulse with a code of 1.
From what I have read this should not happen.
My pulse handler does not respond to pulses with a code of 2 and above.

Why does it respond to a pulse with a code of 1??

Check that you haven’t attached a pulse handler elsewhere in your code,
pulse_attach should only work on one pulse code at a time.

Poseidon