[gdal-dev] GDAL Process Exit Codes and stderr
Even Rouault
even.rouault at spatialys.com
Tue Mar 10 12:17:12 PDT 2026
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.
More information about the gdal-dev
mailing list