From 3a9090e19bc60831ae7e09432263c6b3bc0892a3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 13 Sep 2016 23:41:43 +0100 Subject: [PATCH] syscall_proc: note type punning we need to fix --- Kernel/syscall_proc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/syscall_proc.c b/Kernel/syscall_proc.c index 81028003..135d7219 100644 --- a/Kernel/syscall_proc.c +++ b/Kernel/syscall_proc.c @@ -314,6 +314,8 @@ arg_t _waitpid(void) /* Add in child's time info. It was stored on top */ /* of p_priority in the childs process table entry. */ + /* FIXME: make these a union so we don't do type + punning and break strict aliasing */ udata.u_cutime += ((clock_t *)&p->p_priority)[0]; udata.u_cstime += ((clock_t *)&p->p_priority)[1]; return retval; -- 2.34.1