Kea
2.7.6
resource.cc
Go to the documentation of this file.
1
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#include <config.h>
8
9
#include <
util/unittests/resource.h
>
10
11
#include <gtest/gtest.h>
12
13
#include <sys/time.h>
14
#include <sys/resource.h>
15
16
namespace
isc
{
17
namespace
util {
18
namespace
unittests {
19
20
void
21
dontCreateCoreDumps
() {
22
const
rlimit core_limit = {0, 0};
23
24
EXPECT_EQ(setrlimit(RLIMIT_CORE, &core_limit), 0);
25
}
26
27
}
// end of namespace unittests
28
}
// end of namespace util
29
}
// end of namespace isc
isc::util::unittests::dontCreateCoreDumps
void dontCreateCoreDumps()
Don't create core dumps.
Definition
resource.cc:21
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
resource.h
src
lib
util
unittests
resource.cc
Generated on Wed Dec 11 2024 18:20:12 for Kea by
1.10.0