Talk:Profile in use: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (→‎multiple lock file names on Linux?: I added ".parentlock" to article.)
Line 29: Line 29:
== multiple lock file names on Linux? ==
== multiple lock file names on Linux? ==


The article states that on Linux a profile's lock file is called "lock".
The article states that on Linux a profile's lock file is called ".lock".


This is not true as the following <tt>strace</tt> log file shows:
This is not true as the following <tt>strace</tt> log file shows:
Line 45: Line 45:
Accessing ".parentlock" may have to do with backwards compatibility according to https://bugzilla.mozilla.org/show_bug.cgi?id=151188
Accessing ".parentlock" may have to do with backwards compatibility according to https://bugzilla.mozilla.org/show_bug.cgi?id=151188


'''Thusly''' I added ".parentlock" to the list of log file names on Linux.
'''Thusly''' I added ".parentlock" to the list of log file names on Linux. -- [[User:Daniel29|Daniel29]] 12:59, 19 January 2006 (UTC)

Revision as of 12:59, 19 January 2006

Question: prevent parent.lock creation

How do i prevent parent.lock creation ? When the profile is stored on a network drive and the connection is suddenly lost, the profile manager shows up.

It happens too often when you've got >300 network users !

Thank you for your answer...

the help desk !

Asqueella 12:49, 17 Aug 2004 (PDT): The talk pages are used for discussing the page content, not for asking questions. Ask questions at forums. Regarding your question, do you have 300+ people using the same profile simultaneously?. You shouldn't. Instead you should (IMO) make a local copy of profile on startup. Or just delete the parent.lock on startup (but you must be sure nobody else is using that profile).

Janvlug 00:23, 23 September 2005 (PDT) Firefox 1.5 creates a .parentlock file at my system using Linux, instead of a lock file as stated in the article. Furthermore, my experience is that Firefox 1.5 is unable to create a new profile on a fat partition mounted on a Linux system, only a .parentlock file is created. See also bug https://bugzilla.mozilla.org/show_bug.cgi?id=309645.

split this article for products and OSes?

I think this article is very long and confusing as much as to the point it might be...

For example for Firefox on Windows this page could read:

Exit Firefox. Type firefox -p to start > run. Select old profile.

That's it. Of course, you could add explanation why this happens (firefox's in memory) and maybe advice them to use task manager to kill the hung process the next time they see the profile manager dialog... The good things here is Firefox 1.5 handles this issue differently, hopefully rendering this entire article to a purely documentational technical piece of trivia... --FatJohn 06:40, 11 November 2005 (PST)

multiple lock file names on Linux?

The article states that on Linux a profile's lock file is called ".lock".

This is not true as the following strace log file shows:

# strace -f firefox -safe-mode  2>&1 | grep -C5 "mozilla/firefox"  
...
[pid  6972] open("/home/daniel/.mozilla/firefox/vza5cawk.mx-network with proxy/.parentlock", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 23
[pid  6972] fcntl64(23, F_GETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0, pid=339}) = 0
[pid  6972] fcntl64(23, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable)
[pid  6972] close(23)                   = 0
...

These commands are executed when Profile Manager is shown and I click "Start Firefox". Accessing ".parentlock" may have to do with backwards compatibility according to https://bugzilla.mozilla.org/show_bug.cgi?id=151188

Thusly I added ".parentlock" to the list of log file names on Linux. -- Daniel29 12:59, 19 January 2006 (UTC)