You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix race condition with daemonized jailer in startVMM
When using jailer with Daemonize: true, the jailer parent process exits
immediately after forking the child firecracker process. This caused a
race condition where the SDK's process monitoring goroutine would detect
the parent exit and send to errCh before waitForSocket() could establish
the socket connection, causing startVMM to fail prematurely.
This change modifies the process monitoring logic to treat a clean exit
(status=0) of a daemonized jailer parent as expected behavior rather than
an error condition. The goroutine now returns early in this case, allowing
waitForSocket() and other initialization logic to complete normally.
The actual firecracker child process continues running in daemon mode and
creates the API socket as expected.
Signed-off-by: Adam Thomason <adam.thomason@a17n.co.uk>
0 commit comments