blob: b54308263a24fcbeaf94c65a1c1310bc7c8894ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Copyright (c) 2018-2021, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file process_sys.c
* \brief Subsystem object for process setup.
**/
#include "orconfig.h"
#include "lib/subsys/subsys.h"
#include "lib/process/process_sys.h"
#include "lib/process/process.h"
static int
subsys_process_initialize(void)
{
process_init();
return 0;
}
static void
subsys_process_shutdown(void)
{
process_free_all();
}
const subsys_fns_t sys_process = {
.name = "process",
SUBSYS_DECLARE_LOCATION(),
.level = -18,
.supported = true,
.initialize = subsys_process_initialize,
.shutdown = subsys_process_shutdown
};
|