Question

We need to define a few application specific error codes (exit status). Our use case: uninstaller si calling application to do online deactivation, which may fail for multiple reasons (no internet, internal server error,...). Is there any reserved interval for application specific error codes, so nothing would have chance to interfere?

Thanks

Était-ce utile?

La solution

Your application gets to define its exit status however it likes.

Interpretation is completely up to the invoker. If that happens to be a shell, it will interpret any nonzero code as an error.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top