static GList *children;
static GPatternSpec **exclude_compiled = NULL;
+static gint retcode = EXIT_SUCCESS;
+
#define ADD_CLIENT_HEADER(o, n, v) do { \
struct rspamd_http_client_header *nh; \
nh = g_malloc (sizeof (*nh)); \
rspamd_client_destroy (conn);
g_free (cbdata->filename);
g_free (cbdata);
+
+ if (err) {
+ retcode = EXIT_FAILURE;
+ }
}
static void
g_pattern_spec_free (exclude_compiled[i]);
}
- return ret;
+ /* Mix retcode (return from Rspamd side) and ret (return from subprocess) */
+ return ret ^ retcode;
}