Backport of fix for #1277 to 1.2
Fixed #1277 headless command execution intermittent
As the pipe open/read loop can sometimes return 0 bytes, stop treating this as an error that empties the command queue
Merge Request Checklists
-
Code follows project coding guidelines and its checklist -
I have submitted a MR in the documentation repository if required (N/A) -
I have updated Changelog and NEWS, listing the related issues. -
If my MR introduces new dependencies, I have run all the CIs, even the optional (manual) jobs. (N/A)