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.
After the introduction of
wait_for_terminationin #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
exitsyscall with a non-zero code (see #926).Is anyone working on this? I'd be happy to help.