Running commands in a 'sh -c' does kill the existing environment values.
i.e that does kill ssh-agent.
It sounds more 'direct' to execute the command in the same environment
as fio.
static int exec_string(const char *string)
{
- int ret, newlen = strlen(string) + 1 + 8;
+ int ret, newlen = strlen(string) + 1 + 2;
char *str;
str = malloc(newlen);
- sprintf(str, "sh -c %s", string);
+ sprintf(str, "%s", string);
ret = system(str);
if (ret == -1)