mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 13:47:13 +03:00
rpc: automatically raise max file limit in all daemons
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>
This commit is contained in:
parent
c41cc852f6
commit
04b82f961b
@ -33,6 +33,7 @@
|
|||||||
#include "virnetserver.h"
|
#include "virnetserver.h"
|
||||||
#include "virgdbus.h"
|
#include "virgdbus.h"
|
||||||
#include "virhash.h"
|
#include "virhash.h"
|
||||||
|
#include "virprocess.h"
|
||||||
#include "virsystemd.h"
|
#include "virsystemd.h"
|
||||||
|
|
||||||
#define VIR_FROM_THIS VIR_FROM_RPC
|
#define VIR_FROM_THIS VIR_FROM_RPC
|
||||||
@ -151,6 +152,8 @@ virNetDaemonNew(void)
|
|||||||
dmn->privileged = geteuid() == 0;
|
dmn->privileged = geteuid() == 0;
|
||||||
dmn->autoShutdownInhibitFd = -1;
|
dmn->autoShutdownInhibitFd = -1;
|
||||||
|
|
||||||
|
virProcessActivateMaxFiles();
|
||||||
|
|
||||||
if (virEventRegisterDefaultImpl() < 0)
|
if (virEventRegisterDefaultImpl() < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user