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
1. Graceful exit of the process 1.1.kill-9 PID problemsIt is easy and efficient to force a process to be killed by Kill-9 PID on Linux, so many program stop scripts often choose how to use the kill-9 PID.Whether the Kill-9 PID of Linux or the
Exit () and _ exit () and return, exit_exitreturnThe 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
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
Do TCP connection today, want to quit the program when the connection is not, use Application.exit () unexpectedly cannot exit, the program continues to execute down. Later found that application is not omnipotent, the method of Winfrom exit
1. Local methods for Dalvik VMSAndroid.os.Process.killProcess (Android.os.Process.myPid ())//Get PID, currently get its own also only the API, otherwise from/PROC in its own enumeration of other processes it, but to illustrate that, Ending other
Exit is a database function. If it is set to 0, it Exits normally. If it is set to not 0, it exits abnormally.
If it is a sub-process, you can use GetExitCodeProcess to obtain the exit code and then process it.
Exit () causes the program to
This article was transferred from a netizen who only merged the two articles. The author of each article is unknown. Reject piracy.
_ Exit: terminates the calling process, but does not close the file, clear the output cache, or call the exit
ArticleDirectory
Pre-requisites
Guidelines
Case study 1
Http://blog.csdn.net/CompassButton/archive/2007/03/19/1533453.aspx
Introduction
SAP provides standard transactions to enter data into database. But a client may be want
Author: Android Development Network original time: 2010-06-10 Many users may find their Android program has a lot of activity, such as the main window A, called sub-window B, in b How to shut down the entire Android application? Here Android123
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.