[GRASS-dev] Re: [GRASS-SVN] r40647 - in grass/trunk: display/d.title include lib/gis raster/r.out.mpeg raster/r.topmodel visualization/nviz/src visualization/xganim

Markus Neteler neteler at osgeo.org
Mon Jan 25 07:51:10 EST 2010


On Mon, Jan 25, 2010 at 1:20 PM,  <svn_grass at osgeo.org> wrote:
> Author: glynn
> Date: 2010-01-25 07:20:13 -0500 (Mon, 25 Jan 2010)
> New Revision: 40647
>
...
>   grass/trunk/include/spawn.h
...
>   grass/trunk/lib/gis/spawn.c
...

> Modified: grass/trunk/include/spawn.h
> ===================================================================
> --- grass/trunk/include/spawn.h 2010-01-25 10:21:35 UTC (rev 40646)
> +++ grass/trunk/include/spawn.h 2010-01-25 12:20:13 UTC (rev 40647)
> @@ -4,6 +4,7 @@
>
>  #include <sys/types.h>
>  #include <sys/stat.h>
> +#include <unistd.h>
>  #include <fcntl.h>
>
>  #define SF_MODE_IN     ((const char *) (O_RDONLY))


> --- grass/trunk/lib/gis/spawn.c 2010-01-25 10:21:35 UTC (rev 40646)
> +++ grass/trunk/lib/gis/spawn.c 2010-01-25 12:20:13 UTC (rev 40647)
> @@ -685,6 +685,14 @@
>
>        if (n != pid)
>            status = -1;
> +       else {
> +           if (WIFEXITED(status))
> +               status = WEXITSTATUS(status);
> +           else if (WIFSIGNALED(status))
> +               status = WTERMSIG(status);
> +           else
> +               status = -0x100;
> +       }
>     }
>
>     undo_signals(sp->signals, sp->num_signals, SST_POST);

should I backport above changes?

Markus


More information about the grass-dev mailing list