Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Steve505

Close one program and start another one

Question

Hey there!

I'm doing for our server something like an information terminal. The problem is, that there are several terminals at different places. Each has access to a Raid, where are all information stored. When I want to display an information from Raid, the program where I was before keeps running (on the background, I suppose). Is there a way to just switch to other program and the old one kill?

Thanks!

Steve505

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Programs usually won't just switch to background. 
You can try to kill it with CTRL+ALT+C .... this should throw an error and kill the program

If you say that it keeps running in the background, how did you find that out? Just asking because it might be some other issue.

Share this post


Link to post
Share on other sites
  • 0

I've closed the program by pressing ctrl + alt + c, and i had to press it twice to return to shell. So I thought that the app was running on the background. 

Share this post


Link to post
Share on other sites
  • 0

Oh that can also happen, if somewhere the error, generated from os.sleep() or event.pull(), gets catched. In this case the program won't stop, at least not with the first try. Timers and Coroutines / Threads might also survive the Interrupt. To handle that you should check for the "interrupted" event (Fired by pressing Ctrl+C) and stop everything correctly. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.