Skip to content

Commit

Permalink
Merge pull request #47313 from thaJeztah/25.0_backport_libc8d_fix_sta…
Browse files Browse the repository at this point in the history
…rtup_data_race

[25.0 backport] libcontainerd/supervisor: fix data race
  • Loading branch information
thaJeztah committed Feb 3, 2024
2 parents 10e3bfd + c12bbf5 commit 341a797
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libcontainerd/supervisor/remote_daemon.go
Expand Up @@ -190,12 +190,13 @@ func (r *remote) startContainerd() error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
err := cmd.Start()
startedCh <- err
if err != nil {
startedCh <- err
return
}

r.daemonWaitCh = make(chan struct{})
startedCh <- nil

// Reap our child when needed
if err := cmd.Wait(); err != nil {
r.logger.WithError(err).Errorf("containerd did not exit successfully")
Expand Down

0 comments on commit 341a797

Please sign in to comment.