Compare commits
2 Commits
d0d6f192ad
...
141bec290b
Author | SHA1 | Date | |
---|---|---|---|
141bec290b | |||
c72a35ef72 |
@ -235,6 +235,10 @@ 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