syscall_emul: update getrlimit to use warn
Don't use std::cerr directly, and just return EINVAL instead of aborting.
This commit is contained in:
parent
9c6509f198
commit
344a437064
1 changed files with 2 additions and 3 deletions
|
@ -1274,9 +1274,8 @@ getrlimitFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
|
|||
break;
|
||||
|
||||
default:
|
||||
std::cerr << "getrlimitFunc: unimplemented resource " << resource
|
||||
<< std::endl;
|
||||
abort();
|
||||
warn("getrlimit: unimplemented resource %d", resource);
|
||||
return -EINVAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue