From 883ad6bf5c135b41d4d52a1c9699b0d3e5fef6f2 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 14 Dec 2012 03:27:18 -0800 Subject: [PATCH] Fixed sim_write_serial to return 0 when the non blocking write fails with the expected errno of EAGAIN --- sim_serial.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sim_serial.c b/sim_serial.c index bb15915c..5ac80862 100644 --- a/sim_serial.c +++ b/sim_serial.c @@ -205,7 +205,11 @@ for (i=0; i