From d09beecc8f5f111538208b7b8da100e0a7015cda Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Jan 2018 18:46:18 +0100 Subject: integrate sigpipe with ain loop --- src/include/taler_testing_lib.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 949297713..8e1191685 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -162,6 +162,16 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_end (void); +/** + * Wait until we receive SIGCHLD signal. + * Then obtain the process trait of the current + * command, wait on the the zombie and continue + * with the next command. + */ +void +TALER_TESTING_wait_for_sigchld (struct TALER_TESTING_Interpreter *is); + + void TALER_TESTING_run (struct TALER_TESTING_Interpreter *is, struct TALER_TESTING_Command *commands); @@ -272,6 +282,28 @@ TALER_TESTING_get_trait_reserve_priv (const struct TALER_TESTING_Command *cmd, struct TALER_ReservePrivateKeyP **reserve_priv); + +/** + * Obtain location where a command stores a pointer to a process + * + * @param cmd command to extract trait from + * @param selector which process to pick if @a cmd has multiple on offer + * @param coin_priv[out] set to address of the pointer to the process + * @return #GNUNET_OK on success + */ +int +TALER_TESTING_get_trait_process (const struct TALER_TESTING_Command *cmd, + const char *selector, + struct GNUNET_OS_Process ***processp); + + + + +struct TALER_TESTING_Trait +TALER_TESTING_make_trait_process (const char *selector, + struct GNUNET_OS_Process **processp); + + /** * @param selector */ -- cgit v1.2.3