Closed Bug 145362 Opened 22 years ago Closed 22 years ago

RFE: Ignore stale lock files

Categories

(Core Graveyard :: Profile: BackEnd, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: mozilla-bugs, Assigned: ccarlen)

Details

Attachments

(1 file)

If Mozilla is started on the same machine as the lock file points to and the pid specified by the lock file no longer exists, Mozilla should just take over the lock file, not consider the profile locked.
Sorry, this should be "BackEnd", probably.
Assignee: ben → ccarlen
Component: Profile Manager FrontEnd → Profile Manager BackEnd
That's what the code does and it worked for me in testing. How did you make this happen? Also, if it does happen, I wouldn't call it an enhancement but a showstopper.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Just reporoduced it again. gulag|~/.mozilla/nogin/5aop1tz1.slt> ls -l lock lrwxrwxrwx 1 nogin nogin 19 May 17 17:58 lock -> 128.84.97.207:14591 gulag|~/.mozilla/nogin/5aop1tz1.slt> kill -9 14591 gulag|~/.mozilla/nogin/5aop1tz1.slt> ls -l lock lrwxrwxrwx 1 nogin nogin 19 May 17 17:58 lock -> 128.84.97.207:14591 gulag|~/.mozilla/nogin/5aop1tz1.slt> mozilla ---> Pops up the Profile Manager and does not let me use the "nogin" profile Exit 1 gulag|~/.mozilla/nogin/5aop1tz1.slt> ls -l lock lrwxrwxrwx 1 nogin nogin 19 Май 17 17:58 lock -> 128.84.97.207:14591 gulag|~/.mozilla/nogin/5aop1tz1.slt> rm -f lock gulag|~/.mozilla/nogin/5aop1tz1.slt> mozilla& [1] 18659 gulag|~/.mozilla/nogin/5aop1tz1.slt> ls -l lock lrwxrwxrwx 1 nogin nogin 19 Май 17 20:08 lock -> 128.84.97.207:18659 BuildID 2002051509, compiled on RedHat Linux 7.2, running on RedHat Linux 7.3
Attached patch patchSplinter Review
errno is ESRCH if the pid does *not* exist
Keywords: patch
Dollars to donuts you're using a build from before bug 145061 was fixed (Andrew definitely is).
Fixed already. /be
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: