# Break out of while loop after certain timeout

**URL:** <https://verificationacademy.com/forums/t/break-out-of-while-loop-after-certain-timeout/33347>\
**Category:** OVM\
**Tags:** OVM, timeout-value, loop, timeout\
**Created:** [July 27, 2017, 9:08pm UTC](https://verificationacademy.com/forums/t/break-out-of-while-loop-after-certain-timeout/33347 "2017-07-27T21:08:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nik\_88](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/n/5f8ce5/32.png) [@nik\_88](https://verificationacademy.com/forums/u/nik_88)\
**Post date:** [July 28, 2017, 5:49pm UTC](https://verificationacademy.com/forums/t/break-out-of-while-loop-after-certain-timeout/33347/3 "2017-07-28T17:49:23Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/break-out-of-while-loop-after-certain-timeout/33347/2):_  
@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.

---

_[View the full topic](https://verificationacademy.com/forums/t/break-out-of-while-loop-after-certain-timeout/33347)._
