Kea 2.7.6
fork.h
Go to the documentation of this file.
1// Copyright (C) 2011-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#ifndef UTIL_UNITTESTS_FORK_H
8#define UTIL_UNITTESTS_FORK_H 1
9
10#include <unistd.h>
11
19namespace isc {
20namespace util {
21namespace unittests {
22
31bool
32process_ok(pid_t process);
33
34pid_t
35provide_input(int* read_pipe, const void* input, const size_t length);
36
37pid_t
38check_output(int* write_pipe, const void* const output, const size_t length);
39
40} // End of the namespace
41}
42}
43
44#endif // UTIL_UNITTESTS_FORK_H
pid_t provide_input(int *read_pipe, const void *input, const size_t length)
Definition fork.cc:67
bool process_ok(pid_t process)
Checks that a process terminates correctly.
Definition fork.cc:36
pid_t check_output(int *write_pipe, const void *const output, const size_t length)
Definition fork.cc:95
Defines the logger used by the top-level component of kea-lfc.