Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
19.21k
stars
716
forks
source link
sensor: Too fast lifecycle hook handlers cause false positive error conditions #463
exec.Command().Run() and its derivatives are prone to a race condition between the underlying cmd.Start() + cmd.Wait() calls and the actual child process execution. Too fast commands can cause the Wait() call being called when the child process is already gone. This makes the Run() method return an error. This PR makes sensor ignore such errors.
exec.Command().Run() and its derivatives are prone to a race condition between the underlying cmd.Start() + cmd.Wait() calls and the actual child process execution. Too fast commands can cause the Wait() call being called when the child process is already gone. This makes the Run() method return an error. This PR makes sensor ignore such errors.