Re: GDAL Process Exit Codes and stderr

Even Rouault via gdal-dev <[email protected]>
Newsgroups gmane.comp.gis.gdal.devel
Message-ID <[email protected]>
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.

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.