Parse commandline strings, move away from old env vars
This commit is contained in:
@@ -28,7 +28,7 @@ static void receiver(void* arg) {
|
||||
}
|
||||
|
||||
static void run_ce_interactive(void) {
|
||||
int ce_pid = exec("sys", "/ce", "-i");
|
||||
int ce_pid = exec("sys", "/ce", NULL);
|
||||
ce_pgid = get_procgroup(ce_pid);
|
||||
|
||||
process_spawn(&receiver, NULL);
|
||||
@@ -44,12 +44,9 @@ static void run_ce_interactive(void) {
|
||||
}
|
||||
|
||||
static void ce_run_init_script(void) {
|
||||
int ce_pid = exec_partial("sys", "/ce");
|
||||
int ce_pid = exec_partial("sys", "/ce", "-script sys:/init.cmd");
|
||||
ce_pgid = get_procgroup(ce_pid);
|
||||
|
||||
const char* script_path = "sys:/init.cmd";
|
||||
env_set(ce_pgid, "s", (void*)script_path, strlen(script_path) + 1);
|
||||
|
||||
struct process_data* recv_pdata = process_spawn(&receiver, NULL);
|
||||
|
||||
exec_partial_fini(ce_pgid);
|
||||
|
||||
Reference in New Issue
Block a user