Fix writing to pipe
Fix writing to pipe

Signed-off-by: aboutros <191efb8fcfc6e86a312bdc25a4b3c4173103e056@murex.com>

adel-boutros/qpid-dispatch,adel-boutros/qpid-dispatch,adel-boutros/qpid-dispatch,adel-boutros/qpid-dispatch,adel-boutros/qpid-dispatch,adel-boutros/qpid-dispatch,adel-boutros/qpid-dispatch