[glib] Continue searching in PATH on ENODEV and ETIMEDOUT



commit b0739f22231b7555c9fcfd5b9fcb5f93b5a46149
Author: David Benjamin <davidben mit edu>
Date:   Thu Mar 15 19:16:02 2012 -0400

    Continue searching in PATH on ENODEV and ETIMEDOUT
    
    Synchronize the error-handling logic from glibc. Users with networked
    filesystems in their PATH may hit ETIMEDOUT.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672201

 glib/gspawn.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/glib/gspawn.c b/glib/gspawn.c
index 1bf380f..7df271f 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -1680,6 +1680,14 @@ g_execute (const gchar *file,
                */
 	      break;
 
+	    case ENODEV:
+	    case ETIMEDOUT:
+	      /* Some strange filesystems like AFS return even
+	       * stranger error numbers.  They cannot reasonably mean anything
+	       * else so ignore those, too.
+	       */
+	      break;
+
 	    default:
 	      /* Some other error means we found an executable file, but
                * something went wrong executing it; return the error to our



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]