Re: GDAL Process Exit Codes and stderr
Peter Townsend via gdal-dev <[email protected]>
| Newsgroups | gmane.comp.gis.gdal.devel |
|---|---|
| Message-ID | <CAMQBGmXe52Yz3mCZ3eOxW4kJLueQjtvZEo81tK-NA1gKWf1pJw@mail.gmail.com> |
Great, thanks! On Tue, Mar 10, 2026 at 2:17 PM Even Rouault <[email protected]> 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 _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev