Merge lp://staging/~tealeg/landscape-client/fix-double-launch into lp://staging/~landscape/landscape-client/trunk
Proposed by
Geoff Teale
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | lp://staging/~tealeg/landscape-client/fix-double-launch | ||||
Merge into: | lp://staging/~landscape/landscape-client/trunk | ||||
Diff against target: |
38 lines (+14/-4) 2 files modified
landscape/ui/model/registration/proxy.py (+1/-1) scripts/landscape-client-settings-ui (+13/-3) |
||||
To merge this branch: | bzr merge lp://staging/~tealeg/landscape-client/fix-double-launch | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Herve (community) | Needs Fixing | ||
Alberto Donato | Approve | ||
Review via email: mp+98453@code.staging.launchpad.net |
This proposal has been superseded by a proposal from 2012-03-21.
Description of the change
This fixes #960211
There are two issues here, firstly the traceback itself (the call to disable_error should actually be to disable_fail and have no message) and secondly the underlying cause of the error: it was possible to launch the UI twice, under which circumstances you could end up taking actions with an inconsistant data set.
To post a comment you must log in.
Looks good, +1!
#1:
please use double quotes instead of single
#2:
+ this_pid = os.getpid()
this can go outside of the for loop
#3:
+ sys.stderr.flush()
I don't think you need to explicitly flush stderr, it's unbuffered. It doesn't make any harm, though.