gvisor/runsc/sandbox
Nicolas Lacasse adf8138e06 Allow sandbox.Wait to be called after the sandbox has exited.
sandbox.Wait is racey, as the sandbox may have exited before it is called, or
even during.

We already had code to handle the case that the sandbox exits during the Wait
call, but we were not properly handling the case where the sandbox has exited
before the call.

The best we can do in such cases is return the sandbox exit code as the
application exit code.

PiperOrigin-RevId: 221702517
Change-Id: I290d0333cc094c7c1c3b4ce0f17f61a3e908d787
2018-11-15 15:35:41 -08:00
..
BUILD Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
chroot.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
network.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
sandbox.go Allow sandbox.Wait to be called after the sandbox has exited. 2018-11-15 15:35:41 -08:00