Skip to content

add --lifecycle-bind-to <pid> #173

@cgwalters

Description

@cgwalters

For both bcvk ephemeral and bcvk libvirt run let's add --lifecycle-bind-to <pid> which would use pidfd_open and monitor that process' status, and when it exits we automatically exit as well.

The use case here is for things like test suites to replace code like this: https://github.com/bootc-dev/bootc/pull/1847/changes#diff-9b60649fe24ef1e3720f95723ad8b0da902c4c9d0071269e1958cdebadf4f157R39

A core problem with Drop impls in Rust (same with Go defer) is they don't get run on SIGINT (ctrl-c) by default and so really one gets pushed to doing cleanup in a more reliable way.

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