Computer Science Canada How can i kill My Fork |
Author: | shorthair [ Wed Sep 01, 2004 1:56 pm ] | ||||
Post subject: | How can i kill My Fork | ||||
im forking time in a procedure , but when i got bakc to hte menu IT FOLLOWS ME THERE ,
them im calling it in as
BUT how do i kill it once im done looking at it , i need it to stop forking , |
Author: | Tony [ Wed Sep 01, 2004 3:37 pm ] | ||
Post subject: | |||
just like with any loop. flag condition.
and when you no longer need the loop running, you set the flag variable to true and that will terminate the loop |
Author: | Mazer [ Wed Sep 01, 2004 5:00 pm ] |
Post subject: | |
Are you sure you should be forking a process from inside the loop? And is Time.Date even a process? |
Author: | AsianSensation [ Wed Sep 01, 2004 5:36 pm ] |
Post subject: | |
exit, return, all works. Just make sure you have a flag, turn it true, and then exit or return. |
Author: | Mazer [ Wed Sep 01, 2004 6:46 pm ] |
Post subject: | |
Exit is for loops, return is for the whole procedure/process. |