-
Notifications
You must be signed in to change notification settings - Fork 111
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
Improve System Timer Usage #363
Comments
This "backup timer" what are you claiming it is doing ? Like an auto-save of changed *.mag file ? Does this feature already exist (or is this issue also a feature request) Can you provide a sequence of events and actions where behaviour changes from that which is expected ? The most obvious solution is not to use |
@dlmiles : I requested Leo to post the issue after we discussed it. It is an item that has been on my "to do" list for a long time without being addressed. I originally put in the backup file timer a long time ago using I have not tried to find a reproducible result. The crash backup file handling is done with the |
@dlmiles : An interesting feature of the crash backup code is that it will write and read a |
I see the issue there are TCL command There is reference to a Considerations that might just require minor tcl changes:
It should be possible to see the current active timer with bonus now you have a new proc Obviously the other approach is to remove the tcl procs above and do it inside C code:
|
|
Magic has (ideally) two timers running, the backup timer creates a backup every ~5 minutes or after a certain number of changes, and some long running functions set up a timer for progress checks. When a new timer is set up, it interferes with the one that is already setup (at least on Linux). This can cause the progess checks to stop, or worse, the crash backup to stop.
Possible solution: use
create_timer()
instead ofsetitimer()
The text was updated successfully, but these errors were encountered: