Fix flaky test case of `TestExecInteractiveStdinClose` Upstream-commit: b7b6b6929c6436145bd12e6fef7efb7d01fa170b Component: engine