Skip to content

Contain daemonising apps started through desktop exec #85

Closed

Description

@ElbertePlinio

Follow-up to #82.

desktop exec stops the process group it starts, but a double-fork or setsid child can leave that group and survive cleanup. Evaluate Linux containment options for daemonising GUI apps:

  • set PR_SET_PDEATHSIG in an appropriate supervisor
  • place the launched app in a dedicated cgroup and kill the cgroup
  • use a subreaper to retain and clean up reparented descendants

Choose a mechanism that preserves PID identity checks, can confirm cleanup, and does not risk signaling unrelated processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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