From b01a1a92cca262956d246083a84ff1d80ad2ff9e Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 18 Jul 2012 14:56:45 +0200 Subject: [PATCH] Do not pass client tid to server on IPC call Thanks to the SCM-rights-based reply capability, the server does not need to know about the client's TID anymore. --- base-linux/src/base/ipc/ipc.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/base-linux/src/base/ipc/ipc.cc b/base-linux/src/base/ipc/ipc.cc index 582079b34b..150d50fc2e 100644 --- a/base-linux/src/base/ipc/ipc.cc +++ b/base-linux/src/base/ipc/ipc.cc @@ -109,11 +109,9 @@ void Ipc_client::_prepare_next_call() { /* prepare next request in buffer */ long const local_name = Ipc_ostream::_dst.local_name(); - long const tid = Native_capability::dst().tid; _write_offset = 0; _write_to_buf(local_name); - _write_to_buf(tid); /* prepare response buffer */ _read_offset = sizeof(long); @@ -148,14 +146,6 @@ void Ipc_server::_prepare_next_reply_wait() /* skip server-local name */ _read_offset = sizeof(long); - /* read client thread id from request buffer */ - long tid = 0; - if (_reply_needed) { - /* XXX to be removed */ - long tid; - if (_reply_needed) - _read_from_buf(tid); - /* prepare next reply */ _write_offset = 0; long local_name = Ipc_ostream::_dst.local_name();