Skip to content

Wait for a JobRemoved signal from Systemd after creating Scope, before intermediate process ends #3286

@CheatCodeSam

Description

@CheatCodeSam

Background

No response

Feature Request

I mentioned this as a more complete solution to the fix in #3262, the current implementation just runs in a loop waiting to see if the cgroup has been created.

Is the request related to some problem running youki?

No response

Proposed Solution

I'm thinking we start waiting for the JobRemoved signal before we even send the signal to create the cgroup, then we just use a mutex to prevent the intermediate process from continuing until the signal has been received and the mutex unlocks. Seems simple enough.

Considerations

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions