Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
etcdmain: correctly check return values from SdNotify()
SdNotify() now returns 2 values, sent and err. So startEtcdOrProxyV2() needs to check the 2 return values correctly. As the 2 values are independent of each other, error checking needs to be slightly updated too. SdNotifyNoSocket, which was previously provided by go-systemd, does not exist any more. In that case (false, nil) will be returned instead.
- Loading branch information