Skip to content

PTY leak when Cling runs for an extended period #11

@mono0x

Description

@mono0x

When running Cling for an extended duration (approximately several days), the number of PTYs gradually increases. If the number of PTYs reaches the system limit, Cling loses search functionality, and other terminal apps cannot be opened.

Terminating Cling immediately restores the number of PTYs to normal. Then restarting Cling afterward restores full functionality.

However, this issue has only been observed on one of my two Mac machines. I have not yet identified the exact conditions under which this occurs. I will update you on this issue once I have more details.

Below is an example of the PTY count before and after terminating Cling:

❯ ls /dev/ttys* | wc -l
527
❯ ls /dev/ttys* | wc -l
19

I am using Cling 1.2.1 on macOS Sequoia 15.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions