Compare commits
2 Commits
141bec290b
...
d0d6f192ad
Author | SHA1 | Date | |
---|---|---|---|
d0d6f192ad | |||
0ba993ec39 |
@ -235,10 +235,6 @@ func (p *Container) Serve() error {
|
||||
// Wait waits for the container init process to exit and releases any resources associated with the [Container].
|
||||
func (p *Container) Wait() error {
|
||||
if p.wait == nil {
|
||||
if p.cmd != nil {
|
||||
// pass through error from Cmd
|
||||
return p.cmd.Wait()
|
||||
}
|
||||
return EINVAL
|
||||
}
|
||||
defer func() { close(p.wait); p.cancel(); p.wait = nil }()
|
||||
|
Loading…
x
Reference in New Issue
Block a user