Merge pull request #789 from mrunalp/close_dbus_conn

utils: Fix close conn after starting scope
This commit is contained in:
Antonio Murdaca 2017-08-27 20:22:54 +02:00 committed by GitHub
commit 609ec81360

View file

@ -64,6 +64,7 @@ func RunUnderSystemdScope(pid int, slice string, unitName string) error {
if err != nil {
return err
}
defer conn.Close()
// Block until job is started
<-ch