aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_os_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-02 14:35:29 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-02 14:35:29 +0000
commit8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0 (patch)
treebee84128152805b0460ee937a28bd78fecd949d0 /src/include/gnunet_os_lib.h
parent21490594534e5ab37d9d0030d5ec5687c1b8c69a (diff)
downloadgnunet-8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0.tar.gz
gnunet-8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0.zip
fixing parent_control_handler hack, adding lifeness attribute to tasks
Diffstat (limited to 'src/include/gnunet_os_lib.h')
-rw-r--r--src/include/gnunet_os_lib.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index 328f20c35..48027e922 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -313,7 +313,8 @@ GNUNET_OS_command_run (GNUNET_OS_LineProcessor proc,
313 313
314 314
315/** 315/**
316 * Retrieve the status of a process 316 * Retrieve the status of a process. Nonblocking version.
317 *
317 * @param proc pointer to process structure 318 * @param proc pointer to process structure
318 * @param type status type 319 * @param type status type
319 * @param code return code/signal number 320 * @param code return code/signal number
@@ -324,7 +325,12 @@ int GNUNET_OS_process_status (struct GNUNET_OS_Process *proc,
324 325
325 326
326/** 327/**
327 * Wait for a process 328 * Wait for a process to terminate. The return code is discarded.
329 * You must not use 'GNUNET_OS_process_status' on the same process
330 * after calling this function! This function is blocking and should
331 * thus only be used if the child process is known to have terminated
332 * or to terminate very soon.
333 *
328 * @param proc pointer to process structure of the process to wait for 334 * @param proc pointer to process structure of the process to wait for
329 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise 335 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
330 */ 336 */
@@ -339,13 +345,6 @@ GNUNET_OS_install_parent_control_handler (void *cls,
339 const struct 345 const struct
340 GNUNET_SCHEDULER_TaskContext * tc); 346 GNUNET_SCHEDULER_TaskContext * tc);
341 347
342/**
343 * Called everty time the parent process sends a signal
344 */
345void
346parent_control_handler (void *cls,
347 const struct
348 GNUNET_SCHEDULER_TaskContext * tc);
349 348
350/** 349/**
351 * Check whether an executable exists and possibly 350 * Check whether an executable exists and possibly