return false;
if ((f = fopen("/proc/self/mountinfo", "r")) == NULL) {
- ERROR("Failed opening /proc/self/mountinfo");
+ SYSERROR("Failed opening /proc/self/mountinfo");
return false;
}
char *fullpath = must_make_path(d->hierarchies[i]->fullcgpath,
"cgroup.procs", NULL);
if (lxc_write_to_file(fullpath, pidstr, len, false) != 0) {
- ERROR("Failed to enter %s", fullpath);
+ SYSERROR("Failed to enter %s", fullpath);
free(fullpath);
return false;
}
d->hierarchies[i]->base_cgroup,
"cgroup.procs", NULL);
if (lxc_write_to_file(fullpath, "0", 2, false) != 0) {
- ERROR("Failed to enter %s", fullpath);
+ SYSERROR("Failed to escape to %s", fullpath);
free(fullpath);
return false;
}