Kea  1.9.9-git
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 
19 namespace isc {
20 namespace util {
21 namespace unittests {
22 
31 bool
32 process_ok(pid_t process);
33 
34 pid_t
35 provide_input(int* read_pipe, const void* input, const size_t length);
36 
37 pid_t
38 check_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
Defines the logger used by the top-level component of kea-dhcp-ddns.
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
pid_t provide_input(int *read_pipe, const void *input, const size_t length)
Definition: fork.cc:67