aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-10-14 16:39:24 +0200
committert3sserakt <t3ss@posteo.de>2021-10-14 16:39:24 +0200
commitd64ac269856744b9bab170964e1d6f36896ecc55 (patch)
treeed5aa79b91fe3cf9388433a5611581b7ce3b846c /src/util
parent003910fc614cd347919707d1bf3c37a939978459 (diff)
downloadgnunet-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.c19
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 */
157static void 159static void
158child_management_start (void) 160child_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 */
194struct GNUNET_ChildWaitHandle * 204struct GNUNET_ChildWaitHandle *
195GNUNET_wait_child (struct GNUNET_OS_Process *proc, 205GNUNET_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 */
222void 237void
223GNUNET_wait_child_cancel (struct GNUNET_ChildWaitHandle *cwh) 238GNUNET_wait_child_cancel (struct GNUNET_ChildWaitHandle *cwh)
224{ 239{