handle EINTR while writing.

2004-09-28  Sven Neumann  <sven@gimp.org>

	* app/file/gimprecentlist.c (gimp_recent_list_write_raw): handle
	EINTR while writing.
This commit is contained in:
Sven Neumann 2004-09-28 12:50:43 +00:00 committed by Sven Neumann
parent 734464155f
commit 5ad16c6fcc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-09-28 Sven Neumann <sven@gimp.org>
* app/file/gimprecentlist.c (gimp_recent_list_write_raw): handle
EINTR while writing.
2004-09-28 Sven Neumann <sven@gimp.org>
* app/config/gimpxmlparser.[ch]: added new convenience function

View File

@ -376,7 +376,7 @@ gimp_recent_list_write_raw (gint fd,
{
gssize written = write (fd, content, remaining);
if (written < 0)
if (written < 0 && errno != EINTR)
return FALSE;
remaining -= written;