Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top