summaryrefslogtreecommitdiffstats
path: root/include/raul/Process.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/raul/Process.hpp')
-rw-r--r--include/raul/Process.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/raul/Process.hpp b/include/raul/Process.hpp
index 085ed8b..d3ef0a9 100644
--- a/include/raul/Process.hpp
+++ b/include/raul/Process.hpp
@@ -46,7 +46,7 @@ public:
// (in child)
// Close all nonstandard file descriptors
- struct rlimit max_fds {};
+ rlimit max_fds {};
getrlimit(RLIMIT_NOFILE, &max_fds);
for (rlim_t fd = 3; fd < max_fds.rlim_cur; ++fd) {
close(static_cast<int>(fd));