aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-10 17:28:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-10 17:28:39 +0100
commite9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54 (patch)
treef7f212c44ef1bb514f5b15b556f1e97caa91427d
parent4afabcbbe22e95a3dfe5db4b31b3b978f73fa0db (diff)
downloadrspamd-e9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54.tar.gz
rspamd-e9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54.zip
[Fix] Fix creating of temporary shmem segment
-rw-r--r--src/libutil/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 19953194c..3b0203f9f 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -1920,6 +1920,11 @@ rspamd_shmem_mkstemp (gchar *pattern)
if (fd != -1) {
rspamd_strlcpy (pattern, nbuf, blen + 1);
+ break;
+ }
+ else if (errno != EEXIST) {
+ g_error ("%s: failed to create temp shmem %s: %s",
+ G_STRLOC, nbuf, strerror (errno));
}
}