从java.lang.Process#waitFor()退出值 [英] Exit value from java.lang.Process#waitFor()

查看:55
本文介绍了从java.lang.Process#waitFor()退出值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

方法 waitFor()返回一个整数值,该整数值是返回码.值0表示正常终止.但是其他返回码的含义是什么?我得到一个退出值11.这是什么意思?以及所有退出值代码都记录在何处?

The method waitFor() returns an integer value which is the return code. The value 0 indicates normal termination. But what are the meanings of other return codes? I am getting an exit value 11. What does that mean? And where all the exit value codes are documented?

推荐答案

这些值是任意的,并取决于要定义的特定程序.您应该参考输出此退出代码的程序的文档或源代码.

These values are arbitrary and up to the specific program to define. You should refer to documentation or source code of the program that is outputting this exit code.

这篇关于从java.lang.Process#waitFor()退出值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆