Break out of while loop after certain timeout

In reply to dave_59:
@dave_59 - Yes the condition in the while loop: signal_val ==0 actually never becomes true. That’s the reason I want to exit from the loop and quit the test after checking for a 120 microsecond period. Thanks for your reply - I had a few questions though. Should the global_stop_request() be called outside the fork? Would anything change for a disable process? Can you show me how disable would work here and which is better to use? I’ll try this suggestion and get back with any comments or let you know if it works.