Java程序退出,代码为“130”,代码为“130”。
问题描述:
当我关闭intellJ中的java程序时,控制台中会出现以下日志:
处理完成后退出代码为130
When I close a java program in intellJ, the following log appears in the console: "Process finished with exit code 130"
有时,代码是1。
我知道这是非常基本的,但我用google搜索互联网,但仍无法找到退出代码的解释。
I know this is the very basic, but I googled Internet and still couldn't find the explanation for the exit code.
代码是什么意思?我在哪里可以找到解释?
What does the code mean? Where can I find the explanation?
答
从评论中窃取@Baby的答案并将其正式化,这表示130退出代码由bash提供,表示用户按Ctrl-C终止了该过程。
To steal @Baby 's answer from the comments and formalize it, this states that the 130 exit code is given by bash, and indicates that the process was terminated by the user pressing Ctrl-C.