Merge pull request #1781 from filbranden/systemd3

Make channel for StartTransientUnit buffered
This commit is contained in:
Mrunal Patel 2018-04-24 11:56:34 -07:00 committed by GitHub
commit 871ba2e58e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
select {
case <-statusChan: