[GRASS-SVN] r40717 - grass/branches/releasebranch_6_4/general/g.parser

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 27 20:43:20 EST 2010


Author: neteler
Date: 2010-01-27 20:43:20 -0500 (Wed, 27 Jan 2010)
New Revision: 40717

Modified:
   grass/branches/releasebranch_6_4/general/g.parser/main.c
Log:
glynn: Use G_spawn() instead of _spawnlp() (backport from dev65, r40712)

Modified: grass/branches/releasebranch_6_4/general/g.parser/main.c
===================================================================
--- grass/branches/releasebranch_6_4/general/g.parser/main.c	2010-01-28 01:40:44 UTC (rev 40716)
+++ grass/branches/releasebranch_6_4/general/g.parser/main.c	2010-01-28 01:43:20 UTC (rev 40717)
@@ -5,7 +5,7 @@
  * AUTHOR(S):    Glynn Clements <glynn gclements.plus.com> (original contributor)
  *               Bernhard Reiter <bernhard intevation.de>, 
  *               Cedric Shock <cedricgrass shockfamily.net>, 
- *               Hamish Bowman <hamish_nospam yahoo.com>, 
+ *               Hamish Bowman <hamish_b yahoo.com>, 
  *               Paul Kelly <paul-grass stjohnspoint.co.uk>, 
  *               Radim Blazek <radim.blazek gmail.com>
  * PURPOSE:      
@@ -398,11 +398,10 @@
 
 	if (shell == NULL)
 	    shell = "sh";
-	ret =
-	    _spawnlp(_P_WAIT, shell, shell, filename, "@ARGS_PARSED@", NULL);
+	ret = G_spawn(shell, shell, filename, "@ARGS_PARSED@", NULL);
 	G_debug(1, "ret = %d", ret);
 	if (ret == -1) {
-	    perror("_spawnlp() failed");
+	    perror("G_spawn() failed");
 	    return 1;
 	}
 	return ret;



More information about the grass-commit mailing list