mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
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:
committed by
Norman Feske
parent
c06c2887f2
commit
8526dc4f19
@@ -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:
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user