Skip to content

Listen does not break if the unix socket is removed #4

@MyNameIsCosmo

Description

@MyNameIsCosmo

If bspwm is shut down, the unix socket is disconnected
The current listener in main.go does not check if the unix socket is still connected (or exists), which will keep btops running until killed.

I think checking sub.conn on top of sub.Scanner may solve this issue, maybe using Scanner.Peek in another function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions