cedric pushed a commit to branch master.

commit 42309042c6e63944cda26e9f7f89cf56d6af3643
Author: Jean-Philippe Andre <[email protected]>
Date:   Fri Jun 14 14:52:57 2013 +0900

    evas/cserve2: fix crash when shutting down cserve2
    
    If a slave is still alive during shutdown, then it will be killed
    and the dead callback should be called. This would then trigger
    a request failed callback on invalid data.
    But there's no point in calling the dead_cb since we're shutting
    down already.
---
 src/bin/evas/evas_cserve2_slaves.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/evas/evas_cserve2_slaves.c 
b/src/bin/evas/evas_cserve2_slaves.c
index be0df8f..277f36c 100644
--- a/src/bin/evas/evas_cserve2_slaves.c
+++ b/src/bin/evas/evas_cserve2_slaves.c
@@ -302,6 +302,9 @@ cserve2_slaves_shutdown(void)
 
    EINA_LIST_FREE(slave_procs, sp)
      {
+        Slave *s = (Slave*) sp;
+
+        s->dead_cb = NULL;
         kill(sp->pid, SIGKILL);
         _slave_proc_free(sp);
      }

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to