race in lock checking?

Bug #911043 reported by Jacob Strauss
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubumirror (Ubuntu)
New
Undecided
Unassigned

Bug Description

ubuarchive (and the others as well) sets a trap to clean up its lockfile on exit.

It then checks for an existing sync process, and if it finds one logs an error and then calls "exit 1".
It looks to me like the exit trap will run in this case, and remove the lock file anyway.

Tags: patch
Revision history for this message
Jacob Strauss (jacob-strauss) wrote :

Perhaps fix with something like this, If you don't still want the savelog in that case?

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.