Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • P pyxdg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xdg
  • pyxdg
  • Merge requests
  • !14

Fix race condition when used concurrently

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Tom Payne requested to merge twpayne/pyxdg:fix-concurrent-use into master Dec 01, 2022
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

See https://bugs.launchpad.net/snapcraft/+bug/1889741 See https://github.com/goreleaser/goreleaser/issues/1715

If two instances of xdg are running concurrently and a directory does not exist, both will try to create it. The first will typically succeed, but the second will fail as the directory now exists.

This commit removes the race condition by allowing the directory to already exist after the isdir check.

Edited Dec 01, 2022 by Tom Payne
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-concurrent-use