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:
Brandon Potter 2015-04-22 07:51:27 -07:00
parent 9c6509f198
commit 344a437064

View file

@ -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;
}