summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_slaves.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-15 05:19:14 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-15 05:19:14 +0000
commit66a43d2a7a239e7ccbfb299d665282d737679c82 (patch)
tree455763d5cd3a3f3e573c604404b8b4045dcda183 /src/bin/evas/evas_cserve2_slaves.c
parentdc0946e205944950fe8c24704137697593274838 (diff)
more warn-- in efl tree.
SVN revision: 79314
Diffstat (limited to 'src/bin/evas/evas_cserve2_slaves.c')
-rw-r--r--src/bin/evas/evas_cserve2_slaves.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/evas/evas_cserve2_slaves.c b/src/bin/evas/evas_cserve2_slaves.c
index f0eed76fe9..5cc6379bf7 100644
--- a/src/bin/evas/evas_cserve2_slaves.c
+++ b/src/bin/evas/evas_cserve2_slaves.c
@@ -328,7 +328,11 @@ _slave_proc_path_get(const char *name)
328 return eina_stringshare_add(name); 328 return eina_stringshare_add(name);
329 } 329 }
330 330
331 getcwd(cwd, sizeof(cwd)); 331 if (!getcwd(cwd, sizeof(cwd)))
332 {
333 WRN("getcwd() write returned < 0.");
334 return NULL;
335 }
332 snprintf(buf, sizeof(buf), "%s/%s", cwd, name); 336 snprintf(buf, sizeof(buf), "%s/%s", cwd, name);
333 if (!access(buf, X_OK)) 337 if (!access(buf, X_OK))
334 return eina_stringshare_add(buf); 338 return eina_stringshare_add(buf);
@@ -475,8 +479,10 @@ _slave_thread_cb(void *data)
475 continue; 479 continue;
476 } 480 }
477 sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data); 481 sd->cmdanswer = sd->cb(sd, &cmd, sd->cmddata, sd->cb_data);
478 write(sd->write_fd, &cmd, sizeof(cmd)); 482 if (write(sd->write_fd, &cmd, sizeof(cmd)) < 0)
479 483 {
484 WRN("_slave_thread_cb() write returned < 0.");
485 }
480 n = read(sd->read_fd, &cmd, sizeof(cmd)); 486 n = read(sd->read_fd, &cmd, sizeof(cmd));
481 } 487 }
482 488