lxc / go-lxc

Go bindings for liblxc
https://linuxcontainers.org/lxc
Other
431 stars 76 forks source link

add ErrorNum to return the last error from the container #99

Closed tych0 closed 6 years ago

tych0 commented 6 years ago

As it stands right now, there is no way to figure out what the exit code of a container spawned by StartExecute() was. liblxc stores the value in c->error_num, so let's make that accessible.

Signed-off-by: Tycho Andersen tycho@tycho.ws

tych0 commented 6 years ago

Now that we have an error_num worth something, let's expose it via go-lxc too :)