@ -4,6 +4,22 @@
#include <sys/wait.h>
#include <fcntl.h>
#ifndef closefrom
namespace
{
void closefrom(int fd)
int const max_fd = sysconf(_SC_OPEN_MAX);
for(int i = fd; i < max_fd; i++)
close(i);
}
#endif
namespace webfuse
@ -9,6 +9,23 @@
#include <stdexcept>