git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiuser, Capabilities and Access Controls (#54)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
process
/
sched.c
diff --git
a/lunaix-os/kernel/process/sched.c
b/lunaix-os/kernel/process/sched.c
index e9f61b313af2bf466cb71656ccb27dd3cd1dfea1..112741c553de299db541357d39baca3487d9f373 100644
(file)
--- a/
lunaix-os/kernel/process/sched.c
+++ b/
lunaix-os/kernel/process/sched.c
@@
-24,7
+24,7
@@
struct thread empty_thread_obj;
struct thread empty_thread_obj;
-volatile struct proc_info* __current;
+volatile struct proc_info* __current
= NULL
;
volatile struct thread* current_thread = &empty_thread_obj;
struct scheduler sched_ctx;
volatile struct thread* current_thread = &empty_thread_obj;
struct scheduler sched_ctx;
@@
-393,6
+393,8
@@
alloc_process()
proc->created = clock_systime();
proc->pgid = proc->pid;
proc->created = clock_systime();
proc->pgid = proc->pid;
+ proc->root = vfs_sysroot;
+
proc->sigreg = vzalloc(sizeof(struct sigregistry));
proc->fdtable = vzalloc(sizeof(struct v_fdtable));
proc->sigreg = vzalloc(sizeof(struct sigregistry));
proc->fdtable = vzalloc(sizeof(struct v_fdtable));