note on how to free returned vector
authorHavoc Pennington <hp@pobox.com>
Fri, 14 Dec 2001 16:26:24 +0000 (16:26 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Fri, 14 Dec 2001 16:26:24 +0000 (16:26 +0000)
2001-12-14  Havoc Pennington  <hp@pobox.com>

* glib/gshell.c (g_shell_parse_argv): note on how to free returned
vector

2001-12-08  Havoc Pennington  <hp@pobox.com>

* glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
message about failure to exec

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gshell.c
glib/gspawn.c

index 2c5b889..80fbeb3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 2c5b889..80fbeb3 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-14  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gshell.c (g_shell_parse_argv): note on how to free returned
+       vector
+
+2001-12-08  Havoc Pennington  <hp@pobox.com>
+
+       * glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
+       message about failure to exec
+
 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
index 3f6134b..87ebaff 100644 (file)
@@ -579,7 +579,7 @@ tokenize_command_line (const gchar *command_line,
  * contains none of the unsupported shell expansions. If the input
  * does contain such expansions, they are passed through
  * literally. Possible errors are those from the #G_SHELL_ERROR
- * domain.
+ * domain. Free the returned vector with g_strfreev().
  * 
  * Return value: TRUE on success, FALSE if error set
  **/
index f436b6f..fd580b9 100644 (file)
@@ -1119,7 +1119,8 @@ fork_exec_with_pipes (gboolean              intermediate_child,
               g_set_error (error,
                            G_SPAWN_ERROR,
                            exec_err_to_g_error (buf[1]),
-                           _("Failed to execute child process (%s)"),
+                           _("Failed to execute child process \"%s\" (%s)"),
+                           argv[0],
                            g_strerror (buf[1]));
 
               break;
@@ -1145,7 +1146,8 @@ fork_exec_with_pipes (gboolean              intermediate_child,
               g_set_error (error,
                            G_SPAWN_ERROR,
                            G_SPAWN_ERROR_FAILED,
-                           _("Unknown error executing child process"));
+                           _("Unknown error executing child process \"%s\""),
+                           argv[0]);
               break;
             }