Set ERR_INVALID_OBEJCT if call failed to server

Tell the client that the last operation failed, instead of continuing doing
useless things.
This commit is contained in:
Alexander Boettcher
2012-08-10 09:25:22 +02:00
committed by Norman Feske
parent c06c2887f2
commit 8526dc4f19
2 changed files with 11 additions and 2 deletions

View File

@@ -421,6 +421,14 @@ namespace Genode {
*/
void _call();
/**
* Set return value if call to server failed
*/
void ret(int retval)
{
*reinterpret_cast<int *>(&_rcvbuf[sizeof(umword_t)]) = retval;
}
public:
/**