How can i kill My Fork
Author |
Message |
shorthair
|
Posted: 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 ,
code: |
procedure Time
loop
fork Time.Date
end Loop
end Time
|
them im calling it in as
BUT how do i kill it once im done looking at it , i need it to stop forking , |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Wed Sep 01, 2004 3:37 pm Post subject: (No 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Mazer
|
Posted: Wed Sep 01, 2004 5:00 pm Post subject: (No subject) |
|
|
Are you sure you should be forking a process from inside the loop? And is Time.Date even a process? |
|
|
|
|
|
AsianSensation
|
Posted: Wed Sep 01, 2004 5:36 pm Post subject: (No subject) |
|
|
exit, return, all works. Just make sure you have a flag, turn it true, and then exit or return. |
|
|
|
|
|
Mazer
|
Posted: Wed Sep 01, 2004 6:46 pm Post subject: (No subject) |
|
|
Exit is for loops, return is for the whole procedure/process. |
|
|
|
|
|
|
|