aboutsummaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--util/secmem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/secmem.c b/util/secmem.c
index 68c6a43c8..bb39ade05 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -82,7 +82,11 @@ lock_pool( void *p, size_t n )
}
if( err ) {
- if( errno != EPERM )
+ if( errno != EPERM
+ #ifdef EAGAIN /* OpenBSD returns this */
+ && errno != EAGAIN
+ #endif
+ )
log_error("can�t lock memory: %s\n", strerror(err));
show_warning = 1;
}