[mkgmap-dev] [Patch v1] improve handling of exits