GNUnet  0.10.x
Data Structures | Functions
helper.c File Reference

API for dealing with (SUID) helper processes that communicate via GNUNET_MessageHeaders on stdin/stdout. More...

#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_mst_lib.h"
Include dependency graph for helper.c:

Go to the source code of this file.

Data Structures

struct  GNUNET_HELPER_SendHandle
 Entry in the queue of messages we need to transmit to the helper. More...
 
struct  GNUNET_HELPER_Handle
 The handle to a helper process. More...
 

Functions

int GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill)
 Sends termination signal to the helper process. More...
 
int GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h)
 Reap the helper process. More...
 
static void stop_helper (struct GNUNET_HELPER_Handle *h, int soft_kill)
 Stop the helper process, we're closing down or had an error. More...
 
static void restart_task (void *cls)
 Restart the helper process. More...
 
static void helper_read (void *cls)
 Read from the helper-process. More...
 
static void start_helper (struct GNUNET_HELPER_Handle *h)
 Start the helper process. More...
 
struct GNUNET_HELPER_HandleGNUNET_HELPER_start (int with_control_pipe, const char *binary_name, char *const binary_argv[], GNUNET_MessageTokenizerCallback cb, GNUNET_HELPER_ExceptionCallback exp_cb, void *cb_cls)
 Starts a helper and begins reading from it. More...
 
void GNUNET_HELPER_destroy (struct GNUNET_HELPER_Handle *h)
 Free's the resources occupied by the helper handle. More...
 
void GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill)
 Kills the helper, closes the pipe and frees the handle. More...
 
static void helper_write (void *cls)
 Write to the helper-process. More...
 
struct GNUNET_HELPER_SendHandleGNUNET_HELPER_send (struct GNUNET_HELPER_Handle *h, const struct GNUNET_MessageHeader *msg, int can_drop, GNUNET_HELPER_Continuation cont, void *cont_cls)
 Send an message to the helper. More...
 
void GNUNET_HELPER_send_cancel (struct GNUNET_HELPER_SendHandle *sh)
 Cancel a GNUNET_HELPER_send operation. More...
 

Detailed Description

API for dealing with (SUID) helper processes that communicate via GNUNET_MessageHeaders on stdin/stdout.

Author
Philipp Toelke
Christian Grothoff

Definition in file helper.c.

Function Documentation

◆ stop_helper()

static void stop_helper ( struct GNUNET_HELPER_Handle h,
int  soft_kill 
)
static

Stop the helper process, we're closing down or had an error.

Parameters
hhandle to the helper process
soft_killif GNUNET_YES, signals termination by closing the helper's stdin; GNUNET_NO to signal termination by sending SIGTERM to helper

Definition at line 279 of file helper.c.

References GNUNET_break, GNUNET_HELPER_kill(), GNUNET_HELPER_wait(), GNUNET_OK, GNUNET_SCHEDULER_cancel(), GNUNET_HELPER_Handle::restart_task, and restart_task().

Referenced by GNUNET_HELPER_stop(), helper_read(), helper_write(), and start_helper().

280 {
281  if (NULL != h->restart_task)
282  {
284  h->restart_task = NULL;
285  }
286  else
287  {
288  GNUNET_break(GNUNET_OK == GNUNET_HELPER_kill(h, soft_kill));
290  }
291 }
int GNUNET_HELPER_kill(struct GNUNET_HELPER_Handle *h, int soft_kill)
Sends termination signal to the helper process.
Definition: helper.c:175
struct GNUNET_SCHEDULER_Task * restart_task
Restart task.
Definition: helper.c:151
#define GNUNET_OK
Named constants for return values.
Definition: gnunet_common.h:75
#define GNUNET_break(cond)
Use this for internal assertion violations that are not fatal (can be handled) but should not occur...
int GNUNET_HELPER_wait(struct GNUNET_HELPER_Handle *h)
Reap the helper process.
Definition: helper.c:223
void * GNUNET_SCHEDULER_cancel(struct GNUNET_SCHEDULER_Task *task)
Cancel the task with the specified identifier.
Definition: scheduler.c:956
Here is the call graph for this function:
Here is the caller graph for this function:

◆ restart_task()

static void restart_task ( void *  cls)
static

Restart the helper process.

Parameters
clshandle to the helper process

Definition at line 457 of file helper.c.

References GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_HELPER_SendHandle::h, GNUNET_HELPER_Handle::restart_task, GNUNET_HELPER_Handle::retry_back_off, and start_helper().

Referenced by helper_read(), helper_write(), start_helper(), and stop_helper().

458 {
459  struct GNUNET_HELPER_Handle *h = cls;
460 
461  h->restart_task = NULL;
462  h->retry_back_off++;
464  "Restarting helper with back-off %u\n",
465  h->retry_back_off);
466  start_helper(h);
467 }
struct GNUNET_SCHEDULER_Task * restart_task
Restart task.
Definition: helper.c:151
The handle to a helper process.
Definition: helper.c:77
static struct GNUNET_ARM_Handle * h
Connection with ARM.
Definition: gnunet-arm.c:94
unsigned int retry_back_off
Count start attempts to increase linear back off.
Definition: helper.c:161
static void start_helper(struct GNUNET_HELPER_Handle *h)
Start the helper process.
Definition: helper.c:399
#define GNUNET_log(kind,...)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ helper_read()

static void helper_read ( void *  cls)
static

Read from the helper-process.

Parameters
clshandle to the helper process

Definition at line 309 of file helper.c.

References _, GNUNET_HELPER_Handle::binary_name, buf, GNUNET_HELPER_Handle::cb_cls, GNUNET_HELPER_Handle::exp_cb, GNUNET_HELPER_Handle::fh_from_helper, GNUNET_ALIGN, GNUNET_DISK_file_read(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_WARNING, GNUNET_HELPER_stop(), GNUNET_log, GNUNET_MAX_MESSAGE_SIZE, GNUNET_MST_from_buffer(), GNUNET_NO, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_add_read_file(), GNUNET_SYSERR, GNUNET_TIME_relative_multiply(), GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_TIME_UNIT_SECONDS, GNUNET_HELPER_SendHandle::h, GNUNET_HELPER_Handle::mst, GNUNET_HELPER_Handle::read_task, GNUNET_HELPER_Handle::restart_task, restart_task(), GNUNET_HELPER_Handle::retry_back_off, stop_helper(), and t.

Referenced by start_helper().

310 {
311  struct GNUNET_HELPER_Handle *h = cls;
313  ssize_t t;
314 
315  h->read_task = NULL;
316  t = GNUNET_DISK_file_read(h->fh_from_helper, &buf, sizeof(buf));
317  if (t < 0)
318  {
319  /* On read-error, restart the helper */
321  _("Error reading from `%s': %s\n"),
322  h->binary_name,
323  strerror(errno));
324  if (NULL != h->exp_cb)
325  {
326  h->exp_cb(h->cb_cls);
328  return;
329  }
331  /* Restart the helper */
334  h->retry_back_off),
335  &restart_task,
336  h);
337  return;
338  }
339  if (0 == t)
340  {
341  /* this happens if the helper is shut down via a
342  signal, so it is not a "hard" error */
344  "Got 0 bytes from helper `%s' (EOF)\n",
345  h->binary_name);
346  if (NULL != h->exp_cb)
347  {
348  h->exp_cb(h->cb_cls);
350  return;
351  }
353  /* Restart the helper */
356  h->retry_back_off),
357  &restart_task,
358  h);
359  return;
360  }
362  "Got %u bytes from helper `%s'\n",
363  (unsigned int)t,
364  h->binary_name);
366  h->fh_from_helper,
367  &helper_read,
368  h);
369  if (GNUNET_SYSERR ==
371  {
373  _("Failed to parse inbound message from helper `%s'\n"),
374  h->binary_name);
375  if (NULL != h->exp_cb)
376  {
377  h->exp_cb(h->cb_cls);
379  return;
380  }
382  /* Restart the helper */
385  h->retry_back_off),
386  &restart_task,
387  h);
388  return;
389  }
390 }
static void restart_task(void *cls)
Restart the helper process.
Definition: helper.c:457
struct GNUNET_SCHEDULER_Task * restart_task
Restart task.
Definition: helper.c:151
ssize_t GNUNET_DISK_file_read(const struct GNUNET_DISK_FileHandle *h, void *result, size_t len)
Read the contents of a binary file into a buffer.
Definition: disk.c:729
The handle to a helper process.
Definition: helper.c:77
#define GNUNET_TIME_UNIT_SECONDS
One second.
void GNUNET_HELPER_stop(struct GNUNET_HELPER_Handle *h, int soft_kill)
Kills the helper, closes the pipe and frees the handle.
Definition: helper.c:563
#define GNUNET_NO
Definition: gnunet_common.h:78
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_read_file(struct GNUNET_TIME_Relative delay, const struct GNUNET_DISK_FileHandle *rfd, GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run with a specified delay or when the specified file descriptor is ready f...
Definition: scheduler.c:1615
static struct GNUNET_SCHEDULER_Task * t
Main task.
static struct GNUNET_ARM_Handle * h
Connection with ARM.
Definition: gnunet-arm.c:94
#define _(String)
GNU gettext support macro.
Definition: platform.h:181
struct GNUNET_SCHEDULER_Task * read_task
Task to read from the helper.
Definition: helper.c:141
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_delayed(struct GNUNET_TIME_Relative delay, GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run with a specified delay.
Definition: scheduler.c:1237
unsigned int retry_back_off
Count start attempts to increase linear back off.
Definition: helper.c:161
static char buf[2048]
struct GNUNET_TIME_Relative GNUNET_TIME_relative_multiply(struct GNUNET_TIME_Relative rel, unsigned long long factor)
Multiply relative time by a given factor.
Definition: time.c:440
#define GNUNET_TIME_UNIT_FOREVER_REL
Constant used to specify "forever".
int GNUNET_MST_from_buffer(struct GNUNET_MessageStreamTokenizer *mst, const char *buf, size_t size, int purge, int one_shot)
Add incoming data to the receive buffer and call the callback for all complete messages.
Definition: mst.c:113
char * binary_name
Binary to run.
Definition: helper.c:131
GNUNET_HELPER_ExceptionCallback exp_cb
The exception callback.
Definition: helper.c:111
#define GNUNET_SYSERR
Definition: gnunet_common.h:76
void * cb_cls
The closure for callbacks.
Definition: helper.c:116
struct GNUNET_MessageStreamTokenizer * mst
The Message-Tokenizer that tokenizes the messages comming from the helper.
Definition: helper.c:106
#define GNUNET_MAX_MESSAGE_SIZE
Largest supported message (to be precise, one byte more than the largest possible message...
static void stop_helper(struct GNUNET_HELPER_Handle *h, int soft_kill)
Stop the helper process, we&#39;re closing down or had an error.
Definition: helper.c:279
#define GNUNET_ALIGN
gcc-ism to force alignment; we use this to align char-arrays that may then be cast to &#39;struct&#39;s...
#define GNUNET_log(kind,...)
static void helper_read(void *cls)
Read from the helper-process.
Definition: helper.c:309
const struct GNUNET_DISK_FileHandle * fh_from_helper
FileHandle to receive data from the helper.
Definition: helper.c:91
Here is the call graph for this function:
Here is the caller graph for this function:

◆ start_helper()

static void start_helper ( struct GNUNET_HELPER_Handle h)
static

Start the helper process.

Parameters
hhandle to the helper process

Definition at line 399 of file helper.c.

References GNUNET_HELPER_Handle::binary_argv, GNUNET_HELPER_Handle::binary_name, GNUNET_HELPER_Handle::fh_from_helper, GNUNET_HELPER_Handle::fh_to_helper, GNUNET_DISK_pipe(), GNUNET_DISK_pipe_close_end(), GNUNET_DISK_PIPE_END_READ, GNUNET_DISK_PIPE_END_WRITE, GNUNET_DISK_pipe_handle(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_NO, GNUNET_OS_INHERIT_STD_ERR, GNUNET_OS_start_process_vap(), GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_add_read_file(), GNUNET_TIME_relative_multiply(), GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_TIME_UNIT_SECONDS, GNUNET_YES, GNUNET_HELPER_Handle::helper_in, GNUNET_HELPER_Handle::helper_out, GNUNET_HELPER_Handle::helper_proc, helper_read(), GNUNET_HELPER_Handle::mst, GNUNET_HELPER_Handle::read_task, GNUNET_HELPER_Handle::restart_task, restart_task(), GNUNET_HELPER_Handle::retry_back_off, stop_helper(), and GNUNET_HELPER_Handle::with_control_pipe.

Referenced by GNUNET_HELPER_start(), and restart_task().

400 {
401  h->helper_in =
403  h->helper_out =
405  if ((h->helper_in == NULL) || (h->helper_out == NULL))
406  {
407  /* out of file descriptors? try again later... */
411  h->retry_back_off),
412  &restart_task,
413  h);
414  return;
415  }
417  "Starting HELPER process `%s'\n",
418  h->binary_name);
419  h->fh_from_helper =
421  h->fh_to_helper =
425  h->helper_in,
426  h->helper_out,
427  NULL,
428  h->binary_name,
429  h->binary_argv);
430  if (NULL == h->helper_proc)
431  {
432  /* failed to start process? try again later... */
436  h->retry_back_off),
437  &restart_task,
438  h);
439  return;
440  }
443  if (NULL != h->mst)
445  h->fh_from_helper,
446  &helper_read,
447  h);
448 }
const struct GNUNET_DISK_FileHandle * fh_to_helper
FileHandle to send data to the helper.
Definition: helper.c:96
When this flag is set, the child process will inherit stderr of the parent.
Definition: gnunet_os_lib.h:90
static void restart_task(void *cls)
Restart the helper process.
Definition: helper.c:457
struct GNUNET_SCHEDULER_Task * restart_task
Restart task.
Definition: helper.c:151
struct GNUNET_DISK_PipeHandle * helper_out
PipeHandle to send data to the helper.
Definition: helper.c:86
#define GNUNET_TIME_UNIT_SECONDS
One second.
#define GNUNET_NO
Definition: gnunet_common.h:78
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_read_file(struct GNUNET_TIME_Relative delay, const struct GNUNET_DISK_FileHandle *rfd, GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run with a specified delay or when the specified file descriptor is ready f...
Definition: scheduler.c:1615
int with_control_pipe
Does the helper support the use of a control pipe for signalling?
Definition: helper.c:156
const struct GNUNET_DISK_FileHandle * GNUNET_DISK_pipe_handle(const struct GNUNET_DISK_PipeHandle *p, enum GNUNET_DISK_PipeEnd n)
Get the handle to a particular pipe end.
Definition: disk.c:1744
struct GNUNET_SCHEDULER_Task * read_task
Task to read from the helper.
Definition: helper.c:141
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_delayed(struct GNUNET_TIME_Relative delay, GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run with a specified delay.
Definition: scheduler.c:1237
unsigned int retry_back_off
Count start attempts to increase linear back off.
Definition: helper.c:161
struct GNUNET_DISK_PipeHandle * helper_in
PipeHandle to receive data from the helper.
Definition: helper.c:81
struct GNUNET_OS_Process * GNUNET_OS_start_process_vap(int pipe_control, enum GNUNET_OS_InheritStdioFlags std_inheritance, struct GNUNET_DISK_PipeHandle *pipe_stdin, struct GNUNET_DISK_PipeHandle *pipe_stdout, struct GNUNET_DISK_PipeHandle *pipe_stderr, const char *filename, char *const argv[])
Start a process.
Definition: os_priority.c:607
struct GNUNET_TIME_Relative GNUNET_TIME_relative_multiply(struct GNUNET_TIME_Relative rel, unsigned long long factor)
Multiply relative time by a given factor.
Definition: time.c:440
#define GNUNET_TIME_UNIT_FOREVER_REL
Constant used to specify "forever".
The writing-end of a pipe.
The reading-end of a pipe.
struct GNUNET_DISK_PipeHandle * GNUNET_DISK_pipe(int blocking_read, int blocking_write, int inherit_read, int inherit_write)
Creates an interprocess channel.
Definition: disk.c:1518
char * binary_name
Binary to run.
Definition: helper.c:131
char ** binary_argv
NULL-terminated list of command-line arguments.
Definition: helper.c:136
struct GNUNET_MessageStreamTokenizer * mst
The Message-Tokenizer that tokenizes the messages comming from the helper.
Definition: helper.c:106
static void stop_helper(struct GNUNET_HELPER_Handle *h, int soft_kill)
Stop the helper process, we&#39;re closing down or had an error.
Definition: helper.c:279
int GNUNET_DISK_pipe_close_end(struct GNUNET_DISK_PipeHandle *p, enum GNUNET_DISK_PipeEnd end)
Closes one half of an interprocess channel.
Definition: disk.c:1635
struct GNUNET_OS_Process * helper_proc
The process id of the helper.
Definition: helper.c:101
#define GNUNET_log(kind,...)
#define GNUNET_YES
Definition: gnunet_common.h:77
static void helper_read(void *cls)
Read from the helper-process.
Definition: helper.c:309
const struct GNUNET_DISK_FileHandle * fh_from_helper
FileHandle to receive data from the helper.
Definition: helper.c:91
Here is the call graph for this function:
Here is the caller graph for this function:

◆ helper_write()

static void helper_write ( void *  cls)
static

Write to the helper-process.

Parameters
clshandle to the helper process

Definition at line 577 of file helper.c.

References _, GNUNET_HELPER_Handle::binary_name, buf, GNUNET_HELPER_Handle::cb_cls, GNUNET_HELPER_SendHandle::cont, GNUNET_HELPER_SendHandle::cont_cls, GNUNET_HELPER_Handle::exp_cb, GNUNET_HELPER_Handle::fh_to_helper, GNUNET_CONTAINER_DLL_remove, GNUNET_DISK_file_write(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_WARNING, GNUNET_free, GNUNET_HELPER_stop(), GNUNET_log, GNUNET_NO, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_add_write_file(), GNUNET_TIME_relative_multiply(), GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_TIME_UNIT_SECONDS, GNUNET_YES, GNUNET_HELPER_SendHandle::h, GNUNET_HELPER_SendHandle::msg, GNUNET_HELPER_Handle::restart_task, restart_task(), GNUNET_HELPER_Handle::retry_back_off, sh, GNUNET_HELPER_Handle::sh_head, GNUNET_HELPER_Handle::sh_tail, GNUNET_MessageHeader::size, stop_helper(), t, GNUNET_HELPER_SendHandle::wpos, and GNUNET_HELPER_Handle::write_task.

Referenced by GNUNET_HELPER_send().

578 {
579  struct GNUNET_HELPER_Handle *h = cls;
581  const char *buf;
582  ssize_t t;
583 
584  h->write_task = NULL;
585  if (NULL == (sh = h->sh_head))
586  {
587  GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Helper write had no work!\n");
588  return; /* how did this happen? */
589  }
590  buf = (const char *)sh->msg;
592  &buf[sh->wpos],
593  ntohs(sh->msg->size) - sh->wpos);
594  if (-1 == t)
595  {
596  /* On write-error, restart the helper */
598  _("Error writing to `%s': %s\n"),
599  h->binary_name,
600  strerror(errno));
601  if (NULL != h->exp_cb)
602  {
603  h->exp_cb(h->cb_cls);
605  return;
606  }
608  "Stopping and restarting helper task!\n");
610  /* Restart the helper */
613  h->retry_back_off),
614  &restart_task,
615  h);
616  return;
617  }
619  "Transmitted %u bytes to %s\n",
620  (unsigned int)t,
621  h->binary_name);
622  sh->wpos += t;
623  if (sh->wpos == ntohs(sh->msg->size))
624  {
626  if (NULL != sh->cont)
627  sh->cont(sh->cont_cls, GNUNET_YES);
628  GNUNET_free(sh);
629  }
630  if (NULL != h->sh_head)
631  h->write_task =
633  h->fh_to_helper,
634  &helper_write,
635  h);
636 }
#define GNUNET_CONTAINER_DLL_remove(head, tail, element)
Remove an element from a DLL.
const struct GNUNET_DISK_FileHandle * fh_to_helper
FileHandle to send data to the helper.
Definition: helper.c:96
static void restart_task(void *cls)
Restart the helper process.
Definition: helper.c:457
struct GNUNET_SCHEDULER_Task * restart_task
Restart task.
Definition: helper.c:151
The handle to a helper process.
Definition: helper.c:77
unsigned int wpos
Current write position.
Definition: helper.c:70
#define GNUNET_TIME_UNIT_SECONDS
One second.
void GNUNET_HELPER_stop(struct GNUNET_HELPER_Handle *h, int soft_kill)
Kills the helper, closes the pipe and frees the handle.
Definition: helper.c:563
Entry in the queue of messages we need to transmit to the helper.
Definition: helper.c:36
#define GNUNET_NO
Definition: gnunet_common.h:78
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_write_file(struct GNUNET_TIME_Relative delay, const struct GNUNET_DISK_FileHandle *wfd, GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run with a specified delay or when the specified file descriptor is ready f...
Definition: scheduler.c:1647
struct GNUNET_HELPER_SendHandle * sh_tail
Last message queued for transmission to helper.
Definition: helper.c:126
static struct GNUNET_SCHEDULER_Task * t
Main task.
uint16_t size
The length of the struct (in bytes, including the length field itself), in big-endian format...
static struct GNUNET_ARM_Handle * h
Connection with ARM.
Definition: gnunet-arm.c:94
#define _(String)
GNU gettext support macro.
Definition: platform.h:181
struct GNUNET_SCHEDULER_Task * write_task
Task to read from the helper.
Definition: helper.c:146
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_delayed(struct GNUNET_TIME_Relative delay, GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run with a specified delay.
Definition: scheduler.c:1237
unsigned int retry_back_off
Count start attempts to increase linear back off.
Definition: helper.c:161
ssize_t GNUNET_DISK_file_write(const struct GNUNET_DISK_FileHandle *h, const void *buffer, size_t n)
Write a buffer to a file.
Definition: disk.c:817
static struct SolverHandle * sh
static char buf[2048]
struct GNUNET_TIME_Relative GNUNET_TIME_relative_multiply(struct GNUNET_TIME_Relative rel, unsigned long long factor)
Multiply relative time by a given factor.
Definition: time.c:440
#define GNUNET_TIME_UNIT_FOREVER_REL
Constant used to specify "forever".
struct GNUNET_HELPER_SendHandle * sh_head
First message queued for transmission to helper.
Definition: helper.c:121
char * binary_name
Binary to run.
Definition: helper.c:131
GNUNET_HELPER_ExceptionCallback exp_cb
The exception callback.
Definition: helper.c:111
void * cb_cls
The closure for callbacks.
Definition: helper.c:116
static void stop_helper(struct GNUNET_HELPER_Handle *h, int soft_kill)
Stop the helper process, we&#39;re closing down or had an error.
Definition: helper.c:279
#define GNUNET_log(kind,...)
#define GNUNET_YES
Definition: gnunet_common.h:77
const struct GNUNET_MessageHeader * msg
Message to transmit (allocated at the end of this struct)
Definition: helper.c:50
GNUNET_HELPER_Continuation cont
Function to call upon completion.
Definition: helper.c:60
static void helper_write(void *cls)
Write to the helper-process.
Definition: helper.c:577
void * cont_cls
Closure to &#39;cont&#39;.
Definition: helper.c:65
#define GNUNET_free(ptr)
Wrapper around free.
Here is the call graph for this function:
Here is the caller graph for this function: