diff options
author | Colin Walters <walters@verbum.org> | 2012-08-27 18:30:06 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-08-28 13:56:59 -0400 |
commit | 6e64ba58b90d1d834a6b5f61acec6755e4b80072 (patch) | |
tree | 7bd087c97afbc7816aee82abdea54547885e0533 /gio/gresource-tool.c | |
parent | 2542b6f60492fadfb21f2c4a29976c3494c7e6c5 (diff) | |
download | glib-6e64ba58b90d1d834a6b5f61acec6755e4b80072.tar.gz |
Switch all open() calls to use g_open()
Because it now handles EINTR. And we should do so. While most people
use Linux, which tries very hard to avoid propagating EINTR back up
into userspace, it can still happen.
https://bugzilla.gnome.org/show_bug.cgi?id=682833
Diffstat (limited to 'gio/gresource-tool.c')
-rw-r--r-- | gio/gresource-tool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/gresource-tool.c b/gio/gresource-tool.c index db607fcf5..70c9ee656 100644 --- a/gio/gresource-tool.c +++ b/gio/gresource-tool.c @@ -37,6 +37,7 @@ #endif #include <gio/gio.h> +#include <glib/gstdio.h> #include <gi18n.h> /* GResource functions {{{1 */ @@ -142,7 +143,7 @@ get_elf (const gchar *file, if (elf_version (EV_CURRENT) == EV_NONE ) return NULL; - *fd = open (file, O_RDONLY); + *fd = g_open (file, O_RDONLY, 0); if (*fd < 0) return NULL; |