From 6ce5c754f3c4ac967acb52f8570232ed24ca9452 Mon Sep 17 00:00:00 2001 From: "TOIDA,Suguru" Date: Tue, 20 Aug 2019 15:03:17 +0900 Subject: [PATCH] fork: settid: return error code. Change-Id: I0678c266d8608b6d557b2b1e29e59bd6861314b8 --- kernel/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/syscall.c b/kernel/syscall.c index 087c50fd..806bef33 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -2237,7 +2237,7 @@ SYSCALL_DECLARE(getppid) return thread->proc->ppid_parent->pid; } -static void settid(struct thread *thread, int nr_tids, int *tids) +static int settid(struct thread *thread, int nr_tids, int *tids) { int ret; struct syscall_request request IHK_DMA_ALIGN; @@ -2255,6 +2255,7 @@ static void settid(struct thread *thread, int nr_tids, int *tids) kprintf("%s: WARNING: do_syscall returns %d\n", __FUNCTION__, ret); } + return ret; } SYSCALL_DECLARE(gettid)