문제

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