Skip to content

Commit 76f4814

Browse files
Add timeout while waiting for StartTransinetUnit completion signal from dbus
1 parent ce80fa0 commit 76f4814

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcontainer/cgroups/systemd/apply_systemd.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ func (m *Manager) Apply(pid int) error {
300300
return err
301301
}
302302

303-
<-statusChan
303+
select {
304+
case <-statusChan:
305+
case <-time.After(time.Second):
306+
}
304307

305308
if err := joinCgroups(c, pid); err != nil {
306309
return err

0 commit comments

Comments
 (0)