svm_map_region_args_t _a, *a = &_a;
svm_region_t *vlib_rp, *root_rp;
api_main_t *am = &api_main;
- int i, rv;
+ int i;
struct timespec ts, tsrem;
char *vpe_api_region_suffix = "-vpe-api";
while (nanosleep (&ts, &tsrem) < 0)
ts = tsrem;
tfd = open ((char *) api_name, O_RDWR);
- if (tfd > 0)
+ if (tfd >= 0)
break;
}
vec_free (api_name);
return -2;
}
close (tfd);
- rv = svm_region_init_chroot (am->root_path);
- if (rv)
- return rv;
+ svm_region_init_chroot_uid_gid (am->root_path, getuid (), getgid ());
}
if (a->root_path != NULL)