tasn pushed a commit to branch master.

commit 2d5cc83ed5db71f83899df7409dca8b3a6d55ace
Author: Tom Hacohen <[email protected]>
Date:   Mon Jun 10 16:57:07 2013 +0100

    Also fail if exit signal is non-zero.
    
    We should fail if we segfault, or exit because of another error that
    ecore_exe reports a zero exit code for.
---
 src/bin/scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/scheduler.c b/src/bin/scheduler.c
index c18d595..421db41 100644
--- a/src/bin/scheduler.c
+++ b/src/bin/scheduler.c
@@ -20,7 +20,7 @@ _job_deleted_cb(void *data, int type EINA_UNUSED, void *event)
    Ecore_Exe_Event_Del *msg = (Ecore_Exe_Event_Del *) event;
    Scheduler_Ctx *ctx = data;
 
-   if (msg->exit_code != 0)
+   if ((msg->exit_code != 0) || (msg->exit_signal != 0))
      {
         List_Entry *ent = ecore_exe_data_get(msg->exe);
         exactness_ctx.errors = eina_list_append(exactness_ctx.errors, ent);

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to