diff options
author | dzwdz | 2022-08-19 18:30:35 +0200 |
---|---|---|
committer | dzwdz | 2022-08-19 18:30:35 +0200 |
commit | 6bea8cd391125734339dfb83db498a8651c9f7f7 (patch) | |
tree | 1eb30cda98318ff4fc63652425ef725903619766 /src/user/lib/thread.c | |
parent | 7a4bc281958c639cd52ff4f192933aa161ba81a4 (diff) |
syscall/fork: allow sharing handles between threads
Diffstat (limited to 'src/user/lib/thread.c')
-rw-r--r-- | src/user/lib/thread.c | 2 |
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); } |