diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-10 17:28:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-10 17:28:39 +0100 |
commit | e9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54 (patch) | |
tree | f7f212c44ef1bb514f5b15b556f1e97caa91427d | |
parent | 4afabcbbe22e95a3dfe5db4b31b3b978f73fa0db (diff) | |
download | rspamd-e9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54.tar.gz rspamd-e9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54.zip |
[Fix] Fix creating of temporary shmem segment
-rw-r--r-- | src/libutil/util.c | 5 |
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)); } } |