Fix misspell errors

This commit is contained in:
Manuel de Brito Fontes 2017-11-05 20:11:33 -03:00
parent 5e05acd924
commit 639863a622
4 changed files with 8 additions and 3 deletions

View file

@ -643,7 +643,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
// Do not use defer to remove the temporal file.
// This is helpful when there is an error in the
// temporal configuration (we can manually inspect the file).
// Only remove the file when no error occured.
// Only remove the file when no error occurred.
os.Remove(tmpfile.Name())
}
}

View file

@ -54,6 +54,11 @@ func WaitUntilPortIsAvailable(port int) {
conn.Close()
// kill nginx worker processes
fs, err := proc.NewFS("/proc")
if err != nil {
glog.Errorf("unexpected error reading /proc information: %v", err)
continue
}
procs, _ := fs.FS.AllProcs()
for _, p := range procs {
pn, err := p.Comm()