summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_slaves.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-06-26 11:50:07 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-02 16:58:10 +0900
commit6a2a0187ffa0170d78f0141ae221f1c9f36497cb (patch)
tree6c357455f6b6e959f71b599360352cf7010ae5f7 /src/bin/evas/evas_cserve2_slaves.c
parentf7c654517053d21cbd6da63dd7545dd0eae352c3 (diff)
evas/cserve2: write() can return other errors.
In case of error, return from the function and don't decrement the send variable. Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
Diffstat (limited to 'src/bin/evas/evas_cserve2_slaves.c')
-rw-r--r--src/bin/evas/evas_cserve2_slaves.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/evas/evas_cserve2_slaves.c b/src/bin/evas/evas_cserve2_slaves.c
index 277f36c5aa..1be8a49d1c 100644
--- a/src/bin/evas/evas_cserve2_slaves.c
+++ b/src/bin/evas/evas_cserve2_slaves.c
@@ -153,10 +153,15 @@ _slave_write(Slave *s, const char *data, size_t size)
153 { 153 {
154 if (errno == EAGAIN) 154 if (errno == EAGAIN)
155 break; 155 break;
156 if (errno == EPIPE) 156 else if (errno == EPIPE)
157 { 157 {
158 WRN("Slave unexpectedly gone."); 158 WRN("Slave unexpectedly gone.");
159 /* handle dead? */ 159 /* FIXME: handle dead? */
160 break;
161 }
162 else
163 {
164 ERR("Unhandled error occurred when writing to slave: %d %m", errno);
160 break; 165 break;
161 } 166 }
162 } 167 }