[GRASS-SVN] r40712 - grass/branches/develbranch_6/general/g.parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 27 19:22:02 EST 2010
Author: glynn
Date: 2010-01-27 19:22:02 -0500 (Wed, 27 Jan 2010)
New Revision: 40712
Modified:
grass/branches/develbranch_6/general/g.parser/main.c
Log:
Use G_spawn() instead of _spawnlp() (back-port r40711)
Modified: grass/branches/develbranch_6/general/g.parser/main.c
===================================================================
--- grass/branches/develbranch_6/general/g.parser/main.c 2010-01-28 00:19:23 UTC (rev 40711)
+++ grass/branches/develbranch_6/general/g.parser/main.c 2010-01-28 00:22:02 UTC (rev 40712)
@@ -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