Let the init process can accept the env values
This commit is contained in:
parent
025e059212
commit
27ca93c7ab
@ -31,10 +31,11 @@ int pal_run_init_process() {
|
|||||||
.stderr_fd = STDERR_FILENO,
|
.stderr_fd = STDERR_FILENO,
|
||||||
};
|
};
|
||||||
int libos_tid = 0;
|
int libos_tid = 0;
|
||||||
|
extern const char **environ;
|
||||||
struct occlum_pal_create_process_args init_process_args = {
|
struct occlum_pal_create_process_args init_process_args = {
|
||||||
.path = init_path,
|
.path = init_path,
|
||||||
.argv = init_argv,
|
.argv = init_argv,
|
||||||
.env = NULL,
|
.env = environ,
|
||||||
.stdio = &init_io_fds,
|
.stdio = &init_io_fds,
|
||||||
.pid = &libos_tid,
|
.pid = &libos_tid,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user