[gdal-dev] GDAL Process Exit Codes and stderr

Peter Townsend peter.townsend at maplarge.com
Tue Mar 10 12:19:13 PDT 2026


Great, thanks!

On Tue, Mar 10, 2026 at 2:17 PM Even Rouault <even.rouault at spatialys.com>
wrote:

>
> Le 10/03/2026 à 19:17, Peter Townsend via gdal-dev a écrit :
> > I thought it'd be easiest to just ask.
> >
> > When you run any of the GDAL executables, is it a safe assumption to
> > say that if the process exit code is 0 that it really did succeed at
> > whatever you told it to do? Despite whether it wrote anything out to
> > stderr?
> >
> > To word it a bit differently, if the process code is not zero, can I
> > assume that it didn't work out and I should stop whatever I was doing
> > with GDAL?
> As a principle, yes, that's how things are supposed to work. But as bugs
> happen, from time to time we fix issues where a 0 error code was
> returned whereas a failure occurs.
>
> --
> http://www.spatialys.com
> My software is free, but my time generally not.
>
>

-- 
Peter Townsend
Senior Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20260310/cc60e5ca/attachment.htm>


More information about the gdal-dev mailing list