Skip to content

kernel/task: save exit code #1105

Description

@n-ramacciotti

After the introduction of wait_for_termination in #1044, it is possible to wait for the completion of a task.

When a task terminates, it can be useful to save its exit code for later use.

One use case is to retrieve the exit code of task A after task B waits for task A to terminate
during userspace tests in svsm, to determine if a test has failed. In this case, the failure causes a panic,
which results in an exit syscall with a non-zero code (see #926).

Is anyone working on this? I'd be happy to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions