diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-02 14:35:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-02 14:35:29 +0000 |
commit | 8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0 (patch) | |
tree | bee84128152805b0460ee937a28bd78fecd949d0 /src/include/gnunet_os_lib.h | |
parent | 21490594534e5ab37d9d0030d5ec5687c1b8c69a (diff) | |
download | gnunet-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.h | 17 |
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 | */ | ||
345 | void | ||
346 | parent_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 |