Content-Length: 284989 | pFad | https://github.com/flutter/flutter/issues/79666

3A `FLUTTER/bin/internal/shared.sh` presumes NFS is well-behaved for flocks, and breaks otherwise · Issue #79666 · flutter/flutter · GitHub
Skip to content

FLUTTER/bin/internal/shared.sh presumes NFS is well-behaved for flocks, and breaks otherwise #79666

@RandalSchwartz

Description

@RandalSchwartz

Based on similar issues filed and already closed without resolution, I found that the function _lock in bin/internal/shared.sh presumes well behaved flock functions in Linux. However, at least Centos with NFS (my setup), the presumption is false, and the function fails. It works if patched like this:

function _lock () {
  # if hash flock 2>/dev/null; then
  #   flock --nonblock --exclusive 7 2>/dev/null
  # elif hash shlock 2>/dev/null; then
  #   shlock -f "$1" -p $$
  # else
  #   mkdir "$1" 2>/dev/null
  # fi
  mkdir "$1" 2>/dev/null
}

But that clearly is not a universal patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectplatform-linuxBuilding on or for Linux specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/79666

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy