GNUNET_asprintf (&peer_number, "%llu", num_peers);
GNUNET_asprintf (&connect_number, "%llu", expected_connections);
mem_process =
- GNUNET_OS_start_process (NULL, NULL, "./memsize.pl", "memsize.pl",
+ GNUNET_OS_start_process (NULL, NULL, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, "./memsize.pl", "memsize.pl",
"totals.txt", peer_number, connect_number, NULL);
GNUNET_OS_process_wait (mem_process);
GNUNET_OS_process_destroy (mem_process);
char *binary_start_pos;
char *our_binary_name;
- binary_start_pos = rindex (argv[0], '/');
+ binary_start_pos = strrchr (argv[0], '/');
GNUNET_assert (binary_start_pos != NULL);
topology_string = strstr (binary_start_pos, "_topology");
GNUNET_assert (topology_string != NULL);