summaryrefslogtreecommitdiffstats
path: root/ctx.h
diff options
context:
space:
mode:
Diffstat (limited to 'ctx.h')
-rw-r--r--ctx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctx.h b/ctx.h
index 35eee76..7af4060 100644
--- a/ctx.h
+++ b/ctx.h
@@ -24,6 +24,7 @@
#include "bftw.h"
#include "trie.h"
#include <stdbool.h>
+#include <sys/resource.h>
/**
* Various debugging flags.
@@ -117,6 +118,11 @@ struct bfs_ctx {
struct trie files;
/** The number of files owned by the context. */
int nfiles;
+
+ /** The initial RLIMIT_NOFILE soft limit. */
+ rlim_t nofile_soft;
+ /** The initial RLIMIT_NOFILE hard limit. */
+ rlim_t nofile_hard;
};
/**