We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce80fa0 commit 04e95b5Copy full SHA for 04e95b5
libcontainer/cgroups/systemd/apply_systemd.go
@@ -17,6 +17,7 @@ import (
17
"github.com/opencontainers/runc/libcontainer/cgroups"
18
"github.com/opencontainers/runc/libcontainer/cgroups/fs"
19
"github.com/opencontainers/runc/libcontainer/configs"
20
+ "github.com/sirupsen/logrus"
21
)
22
23
type Manager struct {
@@ -300,7 +301,11 @@ func (m *Manager) Apply(pid int) error {
300
301
return err
302
}
303
- <-statusChan
304
+ select {
305
+ case <-statusChan:
306
+ case <-time.After(time.Second):
307
+ logrus.Warnf("Timed out while waiting for StartTransientUnit completion signal from dbus. Continuing...")
308
+ }
309
310
if err := joinCgroups(c, pid); err != nil {
311
0 commit comments