Closed
Bug 921046
Opened 11 years ago
Closed 11 years ago
Implement a small retry loop for profile locking on startup
Categories
(Toolkit :: Startup and Profile System, defect)
Toolkit
Startup and Profile System
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: benjamin, Assigned: benjamin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Currently we try to lock the profile once and give up if we can't. If we're currently shutting down Firefox it would be nice to just retry a few times before giving up: maybe every .2 seconds for up to 10 seconds?
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #814468 -
Flags: review?(nfroyd)
Attachment #814468 -
Flags: review?(dtownsend+bugmail)
Updated•11 years ago
|
Attachment #814468 -
Flags: review?(dtownsend+bugmail) → review+
Comment 2•11 years ago
|
||
Comment on attachment 814468 [details] [diff] [review]
Implement a retry loop when locking the profile on startup, so that if a previous instance is shutting down, we will just start with a slight delay
Review of attachment 814468 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
::: toolkit/components/startup/StartupTimeline.h
@@ +6,5 @@
> mozilla_StartupTimeline_Event(PROCESS_CREATION, "process")
> mozilla_StartupTimeline_Event(START, "start")
> mozilla_StartupTimeline_Event(MAIN, "main")
> +mozilla_StartupTimeline_Event(SELECTPROFILE, "selectProfile")
> +mozilla_StartupTimeline_Event(AFTER_PROFILELOCKED, "afterProfileLocked")
Uber-nit: These should probably be SELECT_PROFILE and AFTER_PROFILE_LOCKED for the enum names.
Attachment #814468 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Target Milestone: --- → mozilla27
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•