Die (' 1 ') Die () and exit () are all abort script execution functions; the two names of Exit and die refer to the same function, and die () is the alias of the exit () function. The function accepts only one parameter, either a value returned by a
Reclaim process user space resource exit () function _ exit () function atexit () function on_exit () function, _ exitatexitAbstract:This article describes how to terminate a process and how to use the exit () function to terminate the process and
Difference between System. exit (0) and System. exit (1), difference between system. exit1. References
Http://hi.baidu.com/accpzhangbo/blog/item/52aeffc683ee6ec238db4965.html2. Parsing
Check the source code of java. lang. System. We can find the
Abstract:This article describes how to terminate a process and how to use the exit () function to terminate the process and reclaim the user space resources of the process. It analyzes the exit () function and the _ exit () function, difference in
What are the differences between exit (0), exit (1), and exit (-1? When the process ends, the return value to the system is different. If your process is user, run echo $? You can see that the return value of your process is the value you set in the
System. exit (0) and System. exit (1)
public static void exit(int status)
Terminate the currently running Java virtual machine. The parameter is used as the status code. By convention, a non-0 Status Code indicates that an exception is
1. ERROR/1The system is primarily used to define internal errors: There are 10 types of run time error built into Erlang:Function_clause/case_clause/if_clause/badmatch/badarg/undef/badarith/badfun/badarity/system_limit, For example: 1>
Differences between exit () and _ exit ()
Linux source code
# DEFINE _ nr_exit 1
# DEFINE _ nR _ exit _ nr_exit/* from the File Include/asm-i386/unistd. H */"_ NR _" is the prefix for each system call in the Linux source code. Note that there are
Note: Exit () is exited, the parameters passed in is the program exit status code, 0 for normal exit, the other means the abnormal exit, generally used-1 or 1, standard C has exit_success and exit_failure two macros, with exit (exit_success) ,
System. exit, policystem. exit in Java
Exit the program in java and often use System. exit (1) or System. exit (0 ).
View the source code of the System. exit () method, as shown below:
1 /** 2 * Terminates the currently running Java
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.