Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trap exits in a process

Status
Not open for further replies.

xyz987

Programmer
Sep 26, 2003
10
US
With multiple processes in my code, can and how do I find within one process, when all other processes exit?
 
Umm. Maybe you would have better luck explaining why you would want to do this.

I haven't heard of it, and I can't think why you would want to do it, but maybe with more info I can understand what you are trying to do.
 
Its because, In a testbench I want to give a final report that the test was succesful. I would have a global variable, say, allTests_Passed set to false if there was ever an error. So after all other process exits( i.e, the main process), I would check the status of the global variable, to say if it has passed the test. If you have a better way to do this, u cud help me with that, like making a part of code in the process (the main one..) to get executed just at the end.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top