summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib')
-rw-r--r--src/user/lib/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/lib/thread.c b/src/user/lib/thread.c
index 25d98a9..f7353ad 100644
--- a/src/user/lib/thread.c
+++ b/src/user/lib/thread.c
@@ -4,7 +4,7 @@
#include <user/lib/thread.h>
void thread_create(int flags, void (*fn)(void*), void *arg) {
- if (!_syscall_fork(flags | FORK_SHAREMEM, NULL)) {
+ if (!_syscall_fork(flags | FORK_SHAREMEM | FORK_SHAREHANDLE, NULL)) {
void *stack = malloc(4096);
chstack(arg, fn, stack + 4096);
}