Original link: http://codingstandards.iteye.com/blog/836625 (reproduced please specify the source)Description of UseThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat:
Linux Shell Bash with special meaning exit code purpose descriptionThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat: Exit nExit. Set the exit code to N. (cause the
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
Process 1 is the main first process init of all processes
How to view the process: PS uax
# Include # Include # Include # Include
Int main (){Pid_t PID;Int A = 8;Printf ("current process ID: % d \ n", getpid ());PID = fork ();If (pid> 0) // What
The teacher recommended a few of our famous works, one of which is Zhou Yun teacher's "Premature exit is the root of all failure", this name deeply attracted me, this is not the common problem of most young people? So I put down the things at hand,
The exit and _ exit functions are used to terminate a program normally: _ Exit immediately enters the kernel, and exit is used to execute some cleanup operations (including calling and executing various termination processes, close all standard I/O
1. Linux Command exit-description of the purpose of exiting the Current Shell
The exit command is used to exit the current shell. In the shell script, you can terminate the execution of the current script. If you do not exit, you may continue to
These are process control processes, not built-in language elements.
However, abort is defined in the sysutils unit:
The entire program is exited by throwing a silent exception.
Exit is defined in the system unit and used to exit the process (in
The Dameon process is also called the Daemon, in general he has the following 2 characteristics :1. The life cycle is very long, once started, generally will not terminate, until the system is launched, but the Dameon process can be stopped or send
It's all the same, it's quitting, just returning this 0 and 1 is the error or the correct code to return to the operating system.Exit 1 refers to the return value that the script runs to indicate success or failure, and the reason for the
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.