mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
Whenever starting a test with the capture_output option, both stdout and stderr pipes are resized to a greater capacity. But the problem is that when the system call fcntl() fails, we need to know about the error returned by the system so that we can apply the necessary changes. This patch simply enhances the error checking and reporting related to the invocation of fcntl() when trying to resize a pipe. Refers to #4475 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>