Store the process directory in proc->dir
This commit is contained in:
parent
5404cc5e83
commit
d3ce4a8765
@ -299,15 +299,16 @@ load_loom(struct ovni_loom *loom, char *loomdir)
|
|||||||
if (find_dir_prefix_int(dirent->d_name, "proc", &pid) != 0)
|
if (find_dir_prefix_int(dirent->d_name, "proc", &pid) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char path[PATH_MAX];
|
|
||||||
sprintf(path, "%s/%s", loomdir, dirent->d_name);
|
|
||||||
|
|
||||||
if (i >= loom->nprocs) {
|
if (i >= loom->nprocs) {
|
||||||
err("more process than expected\n");
|
err("more process than expected\n");
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (load_proc(&loom->proc[i], loom, i, pid, path) != 0)
|
struct ovni_eproc *proc = &loom->proc[i];
|
||||||
|
|
||||||
|
sprintf(proc->dir, "%s/%s", loomdir, dirent->d_name);
|
||||||
|
|
||||||
|
if (load_proc(&loom->proc[i], loom, i, pid, proc->dir) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user