Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lib
process
waitpid.h
Go to the documentation of this file.
1
/* Copyright (c) 2011-2021, The Tor Project, Inc. */
2
/* See LICENSE for licensing information */
3
4
/**
5
* \file waitpid.h
6
* \brief Headers for waitpid.c
7
**/
8
9
#ifndef TOR_WAITPID_H
10
#define TOR_WAITPID_H
11
12
#ifndef _WIN32
13
#ifdef HAVE_SYS_TYPES_H
14
#include <sys/types.h>
15
#endif
16
17
/** A callback structure waiting for us to get a SIGCHLD informing us that a
18
* PID has been closed. Created by set_waitpid_callback. Cancelled or cleaned-
19
* up from clear_waitpid_callback(). Do not access outside of the main thread;
20
* do not access from inside a signal handler. */
21
typedef
struct
waitpid_callback_t
waitpid_callback_t
;
22
23
waitpid_callback_t
*set_waitpid_callback(pid_t pid,
24
void
(*fn)(
int
,
void
*),
void
*arg);
25
void
clear_waitpid_callback
(
waitpid_callback_t
*ent);
26
void
notify_pending_waitpid_callbacks
(
void
);
27
#endif
/* !defined(_WIN32) */
28
29
#endif
/* !defined(TOR_WAITPID_H) */
waitpid_callback_t
Definition:
waitpid.c:35
notify_pending_waitpid_callbacks
void notify_pending_waitpid_callbacks(void)
Definition:
waitpid.c:141
clear_waitpid_callback
void clear_waitpid_callback(waitpid_callback_t *ent)
Definition:
waitpid.c:98
Generated by
1.9.4