Remove the stat() time barrier, as it seems to cause bug #463907 (thanks
2007-09-03 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c (gtk_recent_manager_poll_timeout): Remove the stat() time barrier, as it seems to cause bug #463907 (thanks to Sebastien Bacher). svn path=/trunk/; revision=18713
This commit is contained in:
committed by
Emmanuele Bassi
parent
5ef4891d0b
commit
ba56e7dd57
@ -1,3 +1,9 @@
|
|||||||
|
2007-09-03 Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
|
||||||
|
* gtk/gtkrecentmanager.c
|
||||||
|
(gtk_recent_manager_poll_timeout): Remove the stat() time barrier,
|
||||||
|
as it seems to cause bug #463907 (thanks to Sebastien Bacher).
|
||||||
|
|
||||||
2007-08-31 Richard Hult <richard@imendio.com>
|
2007-08-31 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* configure.in: Revert the previous change as it broke the build
|
* configure.in: Revert the previous change as it broke the build
|
||||||
|
|||||||
@ -500,7 +500,6 @@ gtk_recent_manager_poll_timeout (gpointer data)
|
|||||||
{
|
{
|
||||||
GtkRecentManager *manager = GTK_RECENT_MANAGER (data);
|
GtkRecentManager *manager = GTK_RECENT_MANAGER (data);
|
||||||
GtkRecentManagerPrivate *priv = manager->priv;
|
GtkRecentManagerPrivate *priv = manager->priv;
|
||||||
time_t now;
|
|
||||||
struct stat stat_buf;
|
struct stat stat_buf;
|
||||||
int stat_res;
|
int stat_res;
|
||||||
|
|
||||||
@ -508,11 +507,6 @@ gtk_recent_manager_poll_timeout (gpointer data)
|
|||||||
if (priv->write_in_progress || priv->read_in_progress)
|
if (priv->write_in_progress || priv->read_in_progress)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* do not stat the file if we're within 5 seconds from the last stat() */
|
|
||||||
now = time (NULL);
|
|
||||||
if (now < priv->last_mtime + 5);
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
stat_res = g_stat (priv->filename, &stat_buf);
|
stat_res = g_stat (priv->filename, &stat_buf);
|
||||||
if (stat_res < 0)
|
if (stat_res < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user