From: Vsevolod Stakhov Date: Fri, 10 Jun 2016 16:28:39 +0000 (+0100) Subject: [Fix] Fix creating of temporary shmem segment X-Git-Tag: 1.3.0~376 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9e67d85ef8eddc7e38f57b8e11e9eac8ac1ac54;p=thirdparty%2Frspamd.git [Fix] Fix creating of temporary shmem segment --- diff --git a/src/libutil/util.c b/src/libutil/util.c index 19953194c2..3b0203f9fc 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)); } }