diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-31 21:37:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-31 21:37:27 +0100 |
commit | 79531455754d90ce00a3f0486d21bdc62a346c5f (patch) | |
tree | 6a795e063cc0d9af26ac67f8c36ef0991b134aef /src/libutil | |
parent | 7a6c0f7ee28cfaed1c56d78496a557178b90a6bd (diff) | |
download | rspamd-79531455754d90ce00a3f0486d21bdc62a346c5f.tar.gz rspamd-79531455754d90ce00a3f0486d21bdc62a346c5f.zip |
[Minor] Do not blame about unsupported file locks
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 762c8d557..1ad4c6945 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1271,7 +1271,11 @@ rspamd_file_lock (gint fd, gboolean async) if (async && errno == EAGAIN) { return FALSE; } - msg_warn ("lock on file failed: %s", strerror (errno)); + + if (errno != ENOTSUP) { + msg_warn ("lock on file failed: %s", strerror (errno)); + } + return FALSE; } @@ -1294,7 +1298,11 @@ rspamd_file_unlock (gint fd, gboolean async) if (async && errno == EAGAIN) { return FALSE; } - msg_warn ("lock on file failed: %s", strerror (errno)); + + if (errno != ENOTSUP) { + msg_warn ("unlock on file failed: %s", strerror (errno)); + } + return FALSE; } @@ -1317,7 +1325,10 @@ rspamd_file_lock (gint fd, gboolean async) if (async && (errno == EAGAIN || errno == EACCES)) { return FALSE; } - msg_warn ("lock on file failed: %s", strerror (errno)); + if (errno != ENOTSUP) { + msg_warn ("lock on file failed: %s", strerror (errno)); + } + return FALSE; } @@ -1338,7 +1349,10 @@ rspamd_file_unlock (gint fd, gboolean async) if (async && (errno == EAGAIN || errno == EACCES)) { return FALSE; } - msg_warn ("lock on file failed: %s", strerror (errno)); + + if (errno != ENOTSUP) { + msg_warn ("unlock on file failed: %s", strerror (errno)); + } return FALSE; } |