diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-13 15:15:22 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-13 15:15:22 +0200 |
| commit | e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10 (patch) | |
| tree | 9484a801bc205e0e5f921ebeaba0a15e4d561400 /common/uapi | |
| parent | b36e3b83b402ee054c319f0472b16a2bd64bba7e (diff) | |
| download | kmi-e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10.tar.gz kmi-e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10.zip | |
improve documentation on new features
Diffstat (limited to 'common/uapi')
| -rw-r--r-- | common/uapi/ipc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c index e9a6e6b..052e0ad 100644 --- a/common/uapi/ipc.c +++ b/common/uapi/ipc.c @@ -55,8 +55,7 @@ static struct sys_ret do_ipc(sys_arg_t pid, save_context(t); set_return(t, r->callback); - /** @todo associate thread with new proc, should be done in tcb.c I - * think */ + attach_rpc(r, t); if (!fwd) t->eid = t->pid; @@ -110,7 +109,9 @@ SYSCALL_DEFINE4(ipc_resp)(sys_arg_t d0, sys_arg_t d1, sys_arg_t d2, sys_arg_t d3) { struct tcb *t = cur_tcb(); + struct tcb *r = cur_proc(); load_context(t); + detach_rpc(r, t); if (is_rpc(t)) use_vmem(t->rpc.vmem); |
