From: Julian Seward Date: Fri, 13 Sep 2002 15:38:32 +0000 (+0000) Subject: When the client tries to __NR_close() our logfile, claim the close X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e41c534017c7349971dedf554df738eac71218;p=thirdparty%2Fvalgrind.git When the client tries to __NR_close() our logfile, claim the close succeeded, which is a lie since we just ignore it -- otherwise the log disappears at that point. git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@949 --- diff --git a/vg_syscall_mem.c b/vg_syscall_mem.c index f7f245a717..75badc1377 100644 --- a/vg_syscall_mem.c +++ b/vg_syscall_mem.c @@ -1095,6 +1095,8 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid ) VG_(message)(Vg_UserMsg, " Use --logfile-fd= to select an " "alternative logfile fd." ); + /* Pretend the close succeeded, regardless. (0 == success) */ + SET_EAX(tid, 0); } else { KERNEL_DO_SYSCALL(tid,res); }