mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
proc: separate from sched
This commit is contained in:
@@ -171,7 +171,7 @@ static syscallret_t execve(context_t *context, char *upath, char *uargv[], char
|
||||
goto error;
|
||||
}
|
||||
|
||||
refnode = *path == '/' ? sched_getroot() : sched_getcwd();
|
||||
refnode = *path == '/' ? proc_get_root() : proc_get_cwd();
|
||||
|
||||
ret.errno = vfs_lookup(&node, refnode, path, NULL, 0);
|
||||
if (ret.errno)
|
||||
@@ -241,7 +241,7 @@ static syscallret_t execve(context_t *context, char *upath, char *uargv[], char
|
||||
|
||||
if (interp) {
|
||||
vnode_t *interpnode = NULL;
|
||||
vnode_t *interprefnode = *interp == '/' ? sched_getroot() : sched_getcwd();
|
||||
vnode_t *interprefnode = *interp == '/' ? proc_get_root() : proc_get_cwd();
|
||||
ret.errno = vfs_lookup(&interpnode, interprefnode, interp, NULL, 0);
|
||||
if (ret.errno)
|
||||
goto error;
|
||||
@@ -273,7 +273,7 @@ static syscallret_t execve(context_t *context, char *upath, char *uargv[], char
|
||||
|
||||
ret.ret = 0;
|
||||
|
||||
sched_stopotherthreads();
|
||||
proc_stop_other_threads();
|
||||
|
||||
// close O_CLOEXEC fds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user