Wait for whack to reap its process
Whenever we start a process, we need to ensure we wait for it to
complete; there was one instance where we didn't do so with whack,
this fixes it.
Fixes:
@@ -212,7 +212,7 @@ func retrieveActiveConnectionStats() (map[string]int, map[string]int, error) {
}
}
- return activeConnectionsRx, activeConnectionsTx, nil
+ return activeConnectionsRx, activeConnectionsTx, errors.Wrap(cmd.Wait(), "error waiting for whack to complete")
}
func (i *libreswan) refreshConnectionStatus() error {
