Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How can i kill My Fork
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
shorthair




PostPosted: 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

code:

fork Time


BUT how do i kill it once im done looking at it , i need it to stop forking ,
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Sep 01, 2004 3:37 pm   Post subject: (No subject)

just like with any loop. flag condition.

code:

exit when flag


and when you no longer need the loop running, you set the flag variable to true and that will terminate the loop
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Mazer




PostPosted: 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




PostPosted: 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




PostPosted: Wed Sep 01, 2004 6:46 pm   Post subject: (No subject)

Exit is for loops, return is for the whole procedure/process.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: