I think you mean user ID, not PID.
You mean that Wx's single-instance checking on Unix
is based on the existence of the lock file,
rather than the ability to lock it?
That would be a rather major oversight.
-- David
On 26-Jun-2015 4:39 PM, Charlie Fenton wrote:
In addition to the issue that Gianfranco brings up, wxSingleInstanceChecker has
a serious bug, at least the Mac version.
This occurs if the lock file is not deleted at BOINC Manager exit, such as
because of a crash. When the system is next booted, the Manager can sometimes
be assigned the same PID as before and wxSingleInstanceChecker erroneously
reports that another instance is already running.
This bug came up a while back on the Mac, and took a lot of work to find. I
added some Mac-only code to work around the bug.
wxWidgets has just three implementations of wxSingleInstanceChecker: for OS2,
UNIX and MSW, so I suspect that Linux uses the same version as the Mac.
However, the appropriate path to pass wxSingleInstanceChecker will be different
for Linux than the Mac.
The relevant code is in BOINCGUIApp.cpp at lines 406-434 and 764-771. In
addition, the Mac installer also deletes the lock file (if it exists) as an
added precaution.
Cheers,
--Charlie
--
Charlie Fenton [email protected]
BOINC / SETI@home Macintosh & Windows Programmer
Space Sciences Laboratory
UC Berkeley
On Jun 26, 2015, at 5:03 AM, Gianfranco Costamagna
<[email protected]> wrote:
Hi David,
thanks to the Debian Wx maintainer the root cause is in BOINC.
please look at the bug for an explanation and the fix
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781789
making
wxSingleInstanceChecker
to behave like MACOSX does (maybe just adding a .lock or similar) should fix
the issue.
thanks,
Gianfranco
Il Giovedì 11 Giugno 2015 10:21, David Anderson <[email protected]> ha
scritto:
According to Rom, the file name is based on the app name supplied to WxWidgets,
namely line 206 of BOINCGUIApp.cpp:
SetAppName(wxT("BOINC Manager"));
The functions for reading/writing config info
(like window size and position) are members of the class WxConfigBase.
Wx stores this info in a file on Unix; on Win, it uses the registry.
-- David
On 11-Jun-2015 1:02 AM, Gianfranco Costamagna wrote:
Hi David, do you know where on the code the file is created?
(I would like to reassign to wx, but I need prior to have a reduced testcase)
thanks!
Gianfranco
Il Mercoledì 10 Giugno 2015 20:43, David Anderson <[email protected]> ha
scritto:
This config file is create by WxWidgets,
so its lack of leading "." should be considered a WxWidgets bug.
-- David
On 03-Apr-2015 1:36 AM, Gianfranco Costamagna wrote:
Hi Boinc developers,
this bug seems to be an upstream one...
can you please look at it?
thanks
Gianfranco
Il Venerdì 3 Aprile 2015 6:33, kittyofthebox <[email protected]> ha
scritto:
Package: boinc-manager
Version: 7.4.23+dfsg-1
Severity: minor
Hi,
It appears that Boinc Manager drops a configuration file into the home
directory without hiding it:
$ file /home/user/BOINC\ Manager-user
/home/user/BOINC Manager-user: ASCII text, with no line terminators
I think this file should begin with a dot to hide it from display in the home
directory or be
moved to a sub directory in a hidden directory in home.
Kitty
-- System Information:
Debian Release: 8.0
APT prefers testing
APT policy: (750, 'testing'), (700, 'testing'), (650, 'stable'), (600,
'stable'), (450, 'oldstable'), (400, 'oldstable'), (300, 'unstable'), (200,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages boinc-manager depends on:
ii boinc-client 7.4.23+dfsg-1
ii libboinc7 7.4.23+dfsg-1
ii libc6 2.19-17
ii libgcc1 1:4.9.2-10
ii libglib2.0-0 2.42.1-1
ii libgtk2.0-0 2.24.25-3
ii libnotify4 0.7.6-2
ii libsqlite3-0 3.8.7.1-1
ii libstdc++6 4.9.2-10
ii libwxbase3.0-0 3.0.2-1+b1
ii libwxgtk-webview3.0-0 3.0.2-1+b1
ii libwxgtk3.0-0 3.0.2-1+b1
boinc-manager recommends no packages.
Versions of packages boinc-manager suggests:
ii libgl1-mesa-glx 10.3.2-1
ii libxt6 1:1.1.4-1+b1
-- no debconf information
_______________________________________________
boinc_alpha mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_alpha
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.
_______________________________________________
boinc_alpha mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_alpha
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.