summaryrefslogtreecommitdiff
path: root/components/lwp/lwp_pid.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/lwp/lwp_pid.c')
-rw-r--r--components/lwp/lwp_pid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/lwp/lwp_pid.c b/components/lwp/lwp_pid.c
index d0a9e2cec0..2262a33f0f 100644
--- a/components/lwp/lwp_pid.c
+++ b/components/lwp/lwp_pid.c
@@ -700,7 +700,7 @@ pid_t waitpid(pid_t pid, int *status, int options)
/* delete from sibling list of its parent */
struct rt_lwp **lwp_node;
- *status = lwp->lwp_ret;
+ lwp_data_put(this_lwp, status, &lwp->lwp_ret, sizeof(*status));
lwp_node = &this_lwp->first_child;
while (*lwp_node != lwp)
{