None of our daemons use select(), so it is safe to raise the max file
limit to its maximum on startup.
https://gitlab.com/libvirt/libvirt/-/issues/489
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
#include "virnetserver.h"
#include "virgdbus.h"
#include "virhash.h"
+#include "virprocess.h"
#include "virsystemd.h"
#define VIR_FROM_THIS VIR_FROM_RPC
dmn->privileged = geteuid() == 0;
dmn->autoShutdownInhibitFd = -1;
+ virProcessActivateMaxFiles();
+
if (virEventRegisterDefaultImpl() < 0)
goto error;