open has become nasty! --- che! :)

SVN revision: 31383
This commit is contained in:
Carsten Haitzler 2007-08-18 14:26:49 +00:00
parent 38962990d0
commit 526f902e06
2 changed files with 4 additions and 4 deletions

View File

@ -181,11 +181,11 @@ _ecore_fps_debug_init(void)
_ecore_fps_debug_init_count++;
if (_ecore_fps_debug_init_count > 1) return;
snprintf(buf, sizeof(buf), "/tmp/.ecore_fps_debug-%i", (int)getpid());
_ecore_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR);
_ecore_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR, 0644);
if (_ecore_fps_debug_fd < 0)
{
unlink(buf);
_ecore_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR);
_ecore_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR, 0644);
}
if (_ecore_fps_debug_fd >= 0)
{

View File

@ -1742,11 +1742,11 @@ _ecore_evas_fps_debug_init(void)
_ecore_evas_fps_debug_init_count++;
if (_ecore_evas_fps_debug_init_count > 1) return;
snprintf(buf, sizeof(buf), "/tmp/.ecore_evas_fps_debug-%i", (int)getpid());
_ecore_evas_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR);
_ecore_evas_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR, 0644);
if (_ecore_evas_fps_debug_fd < 0)
{
unlink(buf);
_ecore_evas_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR);
_ecore_evas_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR, 0644);
}
if (_ecore_evas_fps_debug_fd >= 0)
{