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
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
:
Exit command is, press ESC to jump to command mode, and then enter: Q (not saved) or: Wq (save) exit. more exit Commands:
: w save file but not exit VI: W file will be modified to save in file, do not exit VI: w! Mandatory save, do not launch VI:
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
The main differences between the Exit function and the return function are:
Exit is used to end the program at any time while the program is running, and its parameters are returned to the OS. You can also say this: The Exit function exits the
The difference between the Exit,_exit-The difference between exit () and _exit () function (Linux system) 2012-03-20 15:19:53Category: LINUX Note: exit () is exit, The passed-in parameter is the status code when the program exits, 0 -1 1 c
The difference between exit () and return: According to ansi c, return and exit () are used in the originally called Main () with the same effect. However, note that "initial call" is used here ". If main () is in a recursive program, exit () will
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
The C standard defines the following exit functions:#include void exit (int status);void _exit (int status);int atexit (void (*function) (void));function functions are described as follows: void exit (int status) The function terminates
the Program that processes a large amount of XML data generated by infopath over the past few days, I used the MDI subform, each form contains its own functions, such, traverse the directory and Its subdirectories to check the file type and
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.