|
From: <sv...@va...> - 2011-09-26 16:50:53
|
Author: sewardj
Date: 2011-09-26 17:46:04 +0100 (Mon, 26 Sep 2011)
New Revision: 12048
Log:
Print a slightly less useless failure message if VG_(mkstemp) fails to
create a temp file, as often happens on Android.
Modified:
trunk/coregrind/m_libcfile.c
Modified: trunk/coregrind/m_libcfile.c
===================================================================
--- trunk/coregrind/m_libcfile.c 2011-09-26 11:28:20 UTC (rev 12047)
+++ trunk/coregrind/m_libcfile.c 2011-09-26 16:46:04 UTC (rev 12048)
@@ -637,8 +637,10 @@
sres = VG_(open)(buf,
VKI_O_CREAT|VKI_O_RDWR|VKI_O_EXCL|VKI_O_TRUNC,
VKI_S_IRUSR|VKI_S_IWUSR);
- if (sr_isError(sres))
+ if (sr_isError(sres)) {
+ VG_(umsg)("VG_(mkstemp): failed to create temp file: %s\n", buf);
continue;
+ }
/* VG_(safe_fd) doesn't return if it fails. */
fd = VG_(safe_fd)( sr_Res(sres) );
if (fullname)
|