bytes_wrote =
GNUNET_DISK_file_write (stdout_fd, wc->data + wc->pos,
wc->length - wc->pos);
- GNUNET_assert (GNUNET_SYSERR != bytes_wrote);
+ if (GNUNET_SYSERR == bytes_wrote)
+ {
+ LOG (GNUNET_ERROR_TYPE_WARNING, "Cannot reply back configuration\n");
+ GNUNET_free (wc->data);
+ GNUNET_free (wc);
+ return;
+ }
wc->pos += bytes_wrote;
if (wc->pos == wc->length)
{
struct GNUNET_TESTBED_HelperReply *reply;
struct GNUNET_CONFIGURATION_Handle *cfg;
struct WriteContext *wc;
+ char *binary;
char *controller;
char *hostname;
char *config;
goto error;
}
LOG_DEBUG ("Staring testbed with config: %s\n", config);
+ binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-testbed");
testbed =
GNUNET_OS_start_process (GNUNET_YES,
GNUNET_OS_INHERIT_STD_ERR /*verbose? */ , NULL,
- NULL, "gnunet-service-testbed",
+ NULL,
+ binary,
"gnunet-service-testbed", "-c", config, NULL);
+ GNUNET_free (binary);
GNUNET_free (config);
if (NULL == testbed)
{