Skip to content

[BUG] Terminal class hangs when run with threads #60504

Closed

Description

@dwoz

Description

While debugging #59903 we discovered that salt.utils.vt.Terminal will sometimes hang before running the command. This problem happens when running in a multi-threaded environment. We tracked the hang down to some book keeping done by python's os.fork method.e

Migrate salt.utils.vt.Terminal use subprocess.Popen instead of making a call to os.fork. subprocess.Popen forks at the C level and avoids the same bookkeeping done by os.fork

Activity

  1. added
    bug
    Silicon v3004.0
    on Jul 8, 2021
  2. modified the milestones: Approved, Silicon on Jul 12, 2021
  3. added
    severity-high
    on Jul 12, 2021
  4. added a commit that references this issue on Jul 12, 2021
  5. added
    bugfix-bckport
    and removed
    Silicon v3004.0
    on Jul 19, 2021
  6. added a commit that references this issue on Jul 20, 2021
  7. added a commit that references this issue on Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugbugfix-bckportseverity-high

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions