From 344a437064a94b753119994f9c2ba20b90a25c6a Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 22 Apr 2015 07:51:27 -0700 Subject: [PATCH] syscall_emul: update getrlimit to use warn Don't use std::cerr directly, and just return EINVAL instead of aborting. --- src/sim/syscall_emul.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 3b584260f..bb73e1fd2 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -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; } -- 2.30.2