Merge pull request #1781 from filbranden/systemd3
Make channel for StartTransientUnit buffered
This commit is contained in:
commit
871ba2e58e
|
@ -320,7 +320,7 @@ func (m *Manager) Apply(pid int) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
statusChan := make(chan string)
|
statusChan := make(chan string, 1)
|
||||||
if _, err := theConn.StartTransientUnit(unitName, "replace", properties, statusChan); err == nil {
|
if _, err := theConn.StartTransientUnit(unitName, "replace", properties, statusChan); err == nil {
|
||||||
select {
|
select {
|
||||||
case <-statusChan:
|
case <-statusChan:
|
||||||
|
|
Loading…
Reference in New Issue