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.
This commit is contained in:
Norman Feske 2012-07-18 14:56:45 +02:00
parent 508d2050a6
commit b01a1a92cc

View File

@ -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();