I am attaching and detaching it because .........
That is absolutely no reason to attach and detach. There is nothing that would not be covered by the disable interrupts.
In the Spanish forum recomend me to use an empty dummie function, and call it instead of detaching the interruption, and it worked good.
Equally as silly as attaching and detaching.
I am afraid that using the polling method would probably miss some signal
Why? You don't appear to be doing much else in the loop function.