Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top