Die: Stop when you encounter an errorDie (): Stop program run, output contentExit: Is the stop program running, is directly stopped, and does not run subsequent code, does not output contentExit (): content can be displayed.Exit (0): Run the program
To create a process with the fork () function, how do you terminate a process?Process exits are categorized as normal exit and exception exit:Normal exit:1). Execute return in the main () function.2). Call the exit () function3). Call the _exit ()
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
/*
* _ Exit () stop the process immediately and clear the space used and various data structures in the kernel.
* Before exit (), call the exit handler to clear the I/0 buffer.
*/
# Include // file preprocessing, including the standard
FigureC program initiation and Termination
Differences:_ Exit () function: directly stop a process, clear its memory space, and destroy various data structures in the kernel;The exit () function is packaged based on these parameters and several
Backup features:
A quick copy of the file, which can only run on the machine where the database directory is located, perform lock tables and UNLOCK tables online, and restore with only copy backup files to source directory coverage.
Insufficient:
When the database server is established, the first thing we need to do is not to consider what MySQL-enabled programs are running on this database-supporting server, but how to recover to the last normal state after the database has been compromised,
Docker data volumes and data containers
These two days began to learn Docker, found that Docker is really strong, so that the site deployment and maintenance efficiency greatly improved. So ready to be on hand to maintain a few station, all Docker.
Establish an automatic backup scriptHere, in order to make the database tutorials backup and restore meet our actual requirements, use a qualifying shell script to automate the entire backup process.[Root@centos ~]# vi mysql Tutorial-backup.sh← set
The tutorial is divided into 4 parts, the first part is a batch of special commands, the second part is a special symbol and batch processing, the third part is batch and variable, part four is a complete case. Because the tutorial is relatively
Many recent viruses that have speculated about weak passwords are popular on the internet, such as the Worm.dvldr worm, which has been a serious one for a while. What these viruses have in common is the use of batches for ipc$ connections to guess
Part I: Special commands for batch processing
A batch file is a series of commands that are set up in a certain order as an executable text file with the extension bat. These commands are collectively referred to as batch commands, and I would like
Objective
There are two main ways to manage data in a Docker container (data volumes) and volume container (data Volume containers), below we introduce the data management in the Docker, the need to learn to learn it.
Data volume
A data volume is
Today I wrote four small functions to share with you:
Dir2doc: saves all files (excluding subfolders) in the folder into a composite file;
Doc2dir: indicates the reverse operation of dir2doc;
Zipdir2doc: Same as dir2doc, but compression is
How to Use minicom Super Terminal in ubuntu my system environment is ubuntu12.04 www.2cto.com 1: download and install minicom # sudo apt-get install minicom 2: run the minicom # sudo minicom-s // command to enter the configuration interface (or
Cocos2d-x game development-Finite State Machine (FSM) (4), cocos2d-xfsmCocos2d-x game development-Finite State Machine (FSM) (4)
Although we understand FSM and can write our own FSM, there are better tools to help us complete this tedious task. SMC (
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.