summaryrefslogtreecommitdiffstats
path: root/src/rspamadm/signtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm/signtool.c')
-rw-r--r--src/rspamadm/signtool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamadm/signtool.c b/src/rspamadm/signtool.c
index 678ee42a6..b28c36c8c 100644
--- a/src/rspamadm/signtool.c
+++ b/src/rspamadm/signtool.c
@@ -221,7 +221,11 @@ rspamadm_edit_file (const gchar *fname)
}
#if GLIB_MAJOR_VERSION >= 2 && GLIB_MINOR_VERSION >= 34
+# if GLIB_MINOR_VERSION >= 70
+ if (!g_spawn_check_wait_status (retcode, &err)) {
+# else
if (!g_spawn_check_exit_status (retcode, &err)) {
+# endif
unlink (tmppath);
rspamd_fprintf (stderr, "%s returned error code: %d - %e\n", editor,
retcode, err);