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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top