Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the class should remove previous instances of itself #1

Open
novia713 opened this issue Dec 29, 2013 · 4 comments
Open

the class should remove previous instances of itself #1

novia713 opened this issue Dec 29, 2013 · 4 comments

Comments

@novia713
Copy link

this class should remove or kill previous instances of itself because if you run twice some program that uses this class and push any button the LCD tries to answer repeated times causing a flickering in the display

i have used this software without noticing this problem quite time ago because i used to print always static text and, consecuently, the display didn't flick regarding the text is always the same
but lately i'm displaying variable texts like CPU temperature and with this changing texts using several instances of the software the LCD flicks a lot

@tillmo
Copy link
Owner

tillmo commented Dec 29, 2013

I think rather than killing previous instances (which can be hard to recognize, since they are just ruby processes), I would introduce a lock, see e.g. http://stackoverflow.com/questions/9672343/how-to-limit-concurrent-instances-of-same-ruby-script or https://github.com/cleverua/lockfile or http://johnallen.us/?p=383

@novia713
Copy link
Author

yes, that would be great.
given the lock, you would warn the user using several instances of the
program would lead to naughty behaviour or recommend to kill the previous
instance :)
El 29/12/2013 21:49, "Till Mossakowski" notifications@github.com escribió:

I think rather than killing previous instances (which can be hard to
recognize, since they are just ruby processes), I would introduce a lock,
see e.g.
http://stackoverflow.com/questions/9672343/how-to-limit-concurrent-instances-of-same-ruby-scriptor
https://github.com/cleverua/lockfile or http://johnallen.us/?p=383


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-31324988
.

@tillmo
Copy link
Owner

tillmo commented Dec 29, 2013

I think given an existing lock, a newly started instance should display a message and wait until the lock is released.

@novia713
Copy link
Author

that would be fine (:

-Leandro

IMPORT MY GPG KEY:
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys BA863309

2013/12/29 Till Mossakowski notifications@github.com

I think given an existing lock, a newly started instance should display a
message and wait until the lock is released.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-31326617
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants