From 78f983f970e24c1a3c7bebce1882f1fc828bd64d Mon Sep 17 00:00:00 2001 From: cedric Date: Wed, 1 Jun 2011 10:56:35 +0000 Subject: [PATCH] ethumb: fix restart of ethumbd_slave. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/ethumb@59862 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/ethumbd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/bin/ethumbd.c b/src/bin/ethumbd.c index 2ed8886..f9508cd 100644 --- a/src/bin/ethumbd.c +++ b/src/bin/ethumbd.c @@ -512,7 +512,14 @@ end: if (ed->slave.bufcmd) free(ed->slave.bufcmd); - return _ethumbd_slave_spawn(&ed->slave, ed); + if (!_ethumbd_slave_spawn(&ed->slave, ed)) + return EINA_FALSE; + + /* restart all queue */ + for (i = 0; i < ed->queue.count; ++i) + _ethumbd_child_write_op_new(&ed->slave, ed->queue.list[i]); + + return EINA_TRUE; } static void -- 2.7.4