store spawned processes in list for now

This commit is contained in:
Sparchatus 2022-03-23 09:59:00 +00:00
parent 3f60fdbb72
commit 6c74f8fd18

View File

@ -16,7 +16,7 @@
extern struct bootinfo *bi; extern struct bootinfo *bi;
extern coreid_t my_core_id; extern coreid_t my_core_id;
struct spawninfo *spawn_process_list = NULL;
@ -324,5 +324,11 @@ errval_t spawn_load_by_name(char *binary_name, struct spawninfo * si,
err = spawn_load_argv(argc, argv, si, pid); err = spawn_load_argv(argc, argv, si, pid);
if (err_is_fail(err)) return err; if (err_is_fail(err)) return err;
// add to process list
if (spawn_process_list != NULL) {
si->next = spawn_process_list->next;
}
spawn_process_list = si;
return SYS_ERR_OK; return SYS_ERR_OK;
} }