I have an issue when I handle the keyboard interrupt (interrupt number 1) in my application
After servicing the interrupt and closing the application the QNX shell stops receiving keyboard inputs.
Even when I donot call the interrupt mask or interrupt detach, I get the same effect of shell not receiving the keyboard interrupt after the application exits.
What I am doing is tring to simulate a hardware interrupt like the powerfail. The interrupt number is a custom one. As I do not have the hardware yet, thenext best thing was the key board. I am using the keyboard to simulate the power fail interrupt.
Is there any other way to generate a hardware interrupt?
You should always use _NTO_INTR_FLAGS_TRK_MSK - that way the OS keeps track of the mask/unmask count and will do the appropriate cleanup if your process exits.