Fix race condition with exec and resize Upstream-commit: cc12d2bfaae135e63b1f962ad80e6943dd995337 Component: engine