process adapted for unix socket
parent
6b9e5ab270
commit
2e41ec11c8
|
@ -29,6 +29,7 @@ void srv_process_gen (struct process *p
|
||||||
|
|
||||||
snprintf(p->path_in , PATH_MAX, "%s%d-%d-%d-in" , TMPDIR, pid, index, version);
|
snprintf(p->path_in , PATH_MAX, "%s%d-%d-%d-in" , TMPDIR, pid, index, version);
|
||||||
snprintf(p->path_out, PATH_MAX, "%s%d-%d-%d-out", TMPDIR, pid, index, version);
|
snprintf(p->path_out, PATH_MAX, "%s%d-%d-%d-out", TMPDIR, pid, index, version);
|
||||||
|
snprintf(p->path_proc, PATH_MAX, "%s%d-%d-%d", TMPDIR, pid, index, version);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,8 @@ struct process {
|
||||||
unsigned int index;
|
unsigned int index;
|
||||||
char path_in [PATH_MAX];
|
char path_in [PATH_MAX];
|
||||||
char path_out [PATH_MAX];
|
char path_out [PATH_MAX];
|
||||||
int pfd;
|
char path_proc [PATH_MAX];
|
||||||
|
int proc_fd;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct process * srv_process_copy (const struct process *p);
|
struct process * srv_process_copy (const struct process *p);
|
||||||
|
|
Reference in New Issue