Skip to content

Running shpool in background consumes CPU #243

@rEnr3n

Description

@rEnr3n

What happened
I'm coming from tmux. I have a bash script containing multiple instances of tmux new-session -d. I want to replicate that in shpool. I wrote a bash script (see To Reproduce) and ran it. There are two shpool processes consuming one cpu thread each.

What I expected to happen
It shouldn't consume high cpu cycles forever.

To Reproduce
Steps to reproduce the behavior:

  1. Write this bash script
#!/usr/bin/env bash
shpool attach 1 &
shpool attach 2 &
  1. Run the script

Version info

$ shpool version
shpool 0.8.0

Logs
shpool1.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions