Merge pull request #449 from xulike666/fight-for-readability
Fix all typos I found in this repo.
This commit is contained in:
commit
983d817470
11 changed files with 16 additions and 16 deletions
|
@ -247,7 +247,7 @@ func (p *process) isAlive() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// check that we have the same startttime
|
||||
// check that we have the same starttime
|
||||
stime, err := starttime.GetProcessStartTime(int(p.pid))
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
|
@ -285,10 +285,10 @@ func waitUntilReady(ctx context.Context, abortCh chan syscall.WaitStatus, root s
|
|||
return
|
||||
case wait := <-abortCh:
|
||||
if wait.Signaled() {
|
||||
err = errors.Errorf("shim died prematurarily: %v", wait.Signal())
|
||||
err = errors.Errorf("shim died prematurely: %v", wait.Signal())
|
||||
return
|
||||
}
|
||||
err = errors.Errorf("shim exited prematurarily with exit code %v", wait.ExitStatus())
|
||||
err = errors.Errorf("shim exited prematurely with exit code %v", wait.ExitStatus())
|
||||
return
|
||||
default:
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@ func (s *Service) SignalProcess(ctx context.Context, r *api.SignalProcessRequest
|
|||
}
|
||||
process := container.GetProcess(r.ProcessID)
|
||||
if process == nil {
|
||||
return nil, fmt.Errorf("Make me a constant! Process not foumd!")
|
||||
return nil, fmt.Errorf("Make me a constant! Process not found!")
|
||||
}
|
||||
return emptyResponse, process.Signal(syscall.Signal(r.Signal))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue