command(s) to send signals to processes. More...
Go to the source code of this file.
Data Structures | |
| struct | SignalState | 
| State for a "signal" CMD.  More... | |
Functions | |
| static void | signal_run (void *cls, struct GNUNET_TESTING_Interpreter *is) | 
| Run the command.   | |
| static void | signal_cleanup (void *cls) | 
| Cleanup the state from a "signal" CMD.   | |
| struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_signal (const char *label, const char *process_label, int signal) | 
| Create a "signal" CMD.   | |
command(s) to send signals to processes.
Definition in file testing_api_cmd_signal.c.
      
  | 
  static | 
Run the command.
| cls | closure. | 
| cmd | the command to execute. | 
| is | the interpreter state. | 
Definition at line 52 of file testing_api_cmd_signal.c.
References GNUNET_break, GNUNET_ERROR_TYPE_ERROR, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_OK, GNUNET_OS_process_kill(), GNUNET_TESTING_FAIL, GNUNET_TESTING_get_trait_process(), GNUNET_TESTING_interpreter_lookup_command(), is, process(), SignalState::process_label, and SignalState::signal.
Referenced by GNUNET_TESTING_cmd_signal().
      
  | 
  static | 
Cleanup the state from a "signal" CMD.
| cls | closure. | 
Definition at line 88 of file testing_api_cmd_signal.c.
References GNUNET_free.
Referenced by GNUNET_TESTING_cmd_signal().
| struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_signal | ( | const char * | label, | 
| const char * | process_label, | ||
| int | signal | ||
| ) | 
Create a "signal" CMD.
| label | command label. | 
| process | handle to the process to signal. | 
| signal | signal to send. | 
Definition at line 105 of file testing_api_cmd_signal.c.
References GNUNET_new, GNUNET_TESTING_command_new, SignalState::process_label, SignalState::signal, signal_cleanup(), and signal_run().