diff options
author | t3sserakt <t3ss@posteo.de> | 2021-10-14 16:39:24 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-10-14 16:39:24 +0200 |
commit | d64ac269856744b9bab170964e1d6f36896ecc55 (patch) | |
tree | ed5aa79b91fe3cf9388433a5611581b7ce3b846c /src/util | |
parent | 003910fc614cd347919707d1bf3c37a939978459 (diff) | |
download | gnunet-d64ac269856744b9bab170964e1d6f36896ecc55.tar.gz gnunet-d64ac269856744b9bab170964e1d6f36896ecc55.zip |
removed versioned artefacts with v2 and v3. changes to reflect the changes in testing_api_loop.c
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/child_management.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/util/child_management.c b/src/util/child_management.c index 4ef42dba2..832e05ece 100644 --- a/src/util/child_management.c +++ b/src/util/child_management.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file testing/child_management.c | 22 | * @file util/child_management.c |
23 | * @brief Handling of child processes in GNUnet. | 23 | * @brief Handling of child processes in GNUnet. |
24 | * @author Christian Grothoff (ANASTASIS) | 24 | * @author Christian Grothoff (ANASTASIS) |
25 | * @author Dominik Meister (ANASTASIS) | 25 | * @author Dominik Meister (ANASTASIS) |
@@ -153,7 +153,9 @@ sighandler_child_death (void) | |||
153 | errno = old_errno; /* restore errno */ | 153 | errno = old_errno; /* restore errno */ |
154 | } | 154 | } |
155 | 155 | ||
156 | 156 | /** | |
157 | * Initializing the signal pipe for child handling. | ||
158 | */ | ||
157 | static void | 159 | static void |
158 | child_management_start (void) | 160 | child_management_start (void) |
159 | { | 161 | { |
@@ -191,6 +193,14 @@ child_management_done (void) | |||
191 | } | 193 | } |
192 | 194 | ||
193 | 195 | ||
196 | /** | ||
197 | * Adding a child process to be monitored by the child management. | ||
198 | * | ||
199 | * @param proc The child process to be monitored. | ||
200 | * @param cp The callback to be called, when the child process completed. | ||
201 | * @param cb_cls The closure for the callback. | ||
202 | * @return An handle for the the child being monitored. | ||
203 | */ | ||
194 | struct GNUNET_ChildWaitHandle * | 204 | struct GNUNET_ChildWaitHandle * |
195 | GNUNET_wait_child (struct GNUNET_OS_Process *proc, | 205 | GNUNET_wait_child (struct GNUNET_OS_Process *proc, |
196 | GNUNET_ChildCompletedCallback cb, | 206 | GNUNET_ChildCompletedCallback cb, |
@@ -219,6 +229,11 @@ GNUNET_wait_child (struct GNUNET_OS_Process *proc, | |||
219 | } | 229 | } |
220 | 230 | ||
221 | 231 | ||
232 | /** | ||
233 | * Removing child handle. | ||
234 | * | ||
235 | * @param cwh The handle to be removed. | ||
236 | */ | ||
222 | void | 237 | void |
223 | GNUNET_wait_child_cancel (struct GNUNET_ChildWaitHandle *cwh) | 238 | GNUNET_wait_child_cancel (struct GNUNET_ChildWaitHandle *cwh) |
224 | { | 239 | { |