the shell state, do what we do not want to do. This is used to signal processing.
Here are some of the more common signals you might encounter to use in your program:
Signal Name
Number of signals
Describe
Sighup
1
This signal is issued at the end of a user terminal connection (normal or abnormal), usually at the end of the control process of the terminal, notifying each job within the same session, when they are no longer associated with the control te
LINUX Signal Concept DetailedWe run the following command to see a list of supported signals from Linux:# kill-l1) SIGHUP 2) SIGINT 3) Sigquit 4) SIGILL5) SIGTRAP 6) SIGABRT 7) Sigbus 8) SIGFPE9) SIGKILL (SIGUSR1) SIGSEGV) SIGUSR213) sigpipe) sigalrm) SIGTERM) SIGCHLD18 (SIGSTOP) SIGTSTP) SIGTTIN22) (Sigttou) Sigurg) sigxcpu) SIGXFSZ26 27) SIGPROF) (sigwi
Cause Analysis and nohup usage for disabling background processes on Linux terminal
Windows and Linux Remote connections (both called remote connections) are different:
1) after Windows Remote connection, if you run a program on a remote machine, you can log out of the connection and connect to the machine for a while to see if the connection has ended, that is to say, without any processing, the program ru
().
Both the sigaction and signal functions call the do_signal function of the kernel service. [kernel service functions, functions that cannot be called by the application system]
Real-Time Signal (reliable signal) and non-real-time signal (unreliable signal)
Early UNIX systems defined only 32 types of signals, Linux 3. x supports 64 types of signals, numbered 0-63 (SIGRTMIN = 31, SIGRTMAX = 63), which may be further increased in the future. This re
See UNP today before the discovery of signal to understanding is really superficial, today took to study alone under discussion.Signal, this function is relatively simple, given a signal, the signal processing function can be, of course, the function is simple, its function is relatively simple, a simple example of the function is as follows:[CPP]View Plaincopy
1 #include
2 #include
3 #include
4
5 void Ouch (int sig)
6 {
7 printf ("I got signal%d\n", SIG);
8 //(void) signa
This series of articles summarizes Linux network stacks, including:(1) Linux Network protocol Stack Summary(2) Network multipart offload technology Gso/tso/ufo/lro/gro in non-virtualized Linux environment(3) QEMU/KVM Network multipart offload technology in virtualized Linux environment Gso/tso/ufo/lro/gro1.
Python Linux signal programming signals, pythonsignals1. Signal Introduction
The Soft Interrupt signal (signal) is used to notify the process of an asynchronous event. Processes can call kill to send Soft Interrupt signals to each other. The kernel can also send a signal to the process due to internal events to notify the process of an event. Note that the signal is only used to notify a process of events and does not transmit any data to the process
indicates the last process action without%n!====Linux: Ctrl-c sends SIGINT signals to all processes in the foreground process group. is often used to terminate a running program. Ctrl-z sends a SIGTSTP signal to all processes in the foreground process group, which is often used to suspend a process. Instead of sending a signal, ctrl-d represents a special binary value, which is a tableUnder Linux:Ctrl-c se
1, what is Linux?
To be exact, the Linux kernel (the core program of the system), whose kernel copyright belongs to Linus Torvalds, is issued under the GPL (GNU general public License) Copyright Agreement, and anyone can copy (copy) and modify ( Change), package distribution (distribute), sales, but can not add any restrictions at the time of distribution, and all the original code must be public, so anyone
The so-called signal (Singal), in my understanding, in fact, and microcontroller development in the same as the interruption, but it is not provided by the system hardware, but the software operating system support a reminder mechanism.The processing method after receiving the signal, generally consists of three kinds:(1) The first is similar to the interrupt handler function, and for the signal to be processed, the process specifies a handler function.(2) The second is to ignore a signal and no
shell builtin for the reasons:it allows job IDs to be used instead of NBSP;NBSP;N Bsp Process IDs, and, if you have reached the limit in processes that you can create, you don ' t has to Start a process to kill another one. [Email protected] ~]# Example two lists all signal names[Email protected] ~]#kill-l1) SIGHUP 2) SIGINT 3) Sigquit 4) Sigill5) SIGTRAP 6) SIGABRT 7) Sigbus 8) SIGFPE9) SIGKILL) SIGUSR1 SIGSEGV) SIGUSR2Sigpipe) sigalrm SIGTER
Linux process viewing and managementBasic features of the OS: file system, network functions, process management, memory management, drivers, security featuresprogram = instruction + dataCpu:Privileged DirectivesGeneral InstructionsProgram execution Environment:Kernel mode: Run kernel-level directivesUser mode: Run General InstructionsApplication:Run normal command: Run directly on the CPURun privileged command: via system callMemory: 8bits, 1byte32bi
Guide
Once, it was tortured by the system () function, because the system () function was not well understood. You have to understand the system () function here, because sometimes you have to face it.
650) this.width=650; "class=" Size-full wp-image-33405 aligncenter "src=" http://www.linuxprobe.com/wp-content/ Uploads/2016/09/linux-crond-1.jpg "alt=" linux-crond-1 "height=" 384 "width="/>L
as follows: 1) VI mytask.sh Enter the following command Date>>/home/mydate3 Cp/home/mydate3/root 2) Grant mytask.sh Execute permission chmod 744 MYTASK.S H 3) Crontab-e 4) Re-enter the command: * * * * * */root/mytask.sh. (3) How to terminate a task crontab-r means to terminate a task schedule. After the command is executed, the tasks in the crontab-e are removed. CRONTAB-L indicates which task schedules are currently in the list.2, the Linux proces
four, Linux basic commands
1. The absolute path is expressed by what symbol. What is represented by the current directory, the top-level directory. What do you mean by the home directory? What commands to switch directories with.
Absolute path: such as/etc/init.d
Current directory and upper level directory:./.. /
Home directory: ~/
Switch Directories: CD 2. How to view the current process. How to perform an exit. How to view the current path.
View
Process in the coordination of the kernel to communicate with each other, mainly including three kinds of methods: signal , pipe and socket interface three categories.1) Signal2) Pipeline3) Sockets: Message Queuing, semaphores, and shared memorySignalSignaling is the oldest form of interprocess communication in UNIX systems. They are used to send asynchronous event signals to one or more processes. Signal can be generated from the keyboard interrupt, in addition to the process of virtual memory
HTTP://WWW.IBM.COM/DEVELOPERWORKS/CN/LINUX/L-LSM/PART1/1. Related background: Why and whatIn recent years, Linux system has been widely concerned and applied by computer industry because of its excellent performance and stability, the flexibility and expansibility of open Source feature, and the lower cost. But in terms of security, the Linux kernel only provides
This series of articles written by muge0913, reproduced please note the Source: http://blog.csdn.net/muge0913/article/details/7322710
Signal and Its Introduction
A signal is a process communication method that is used to process asynchronous events. Signal implementation is a soft interrupt. It is sent as a running process and has been notified of an event in the process.
1) The sighup signal is sent at the end of the user terminal connection (normal or abnormal), usually in the terminal's con
not a signal that can be processed, only when the state of the signal is in a non-blocking state. So it is common to use the Sigprocmask () function to detect and change the signal mask word (the signal mask Word is used to specify a set of signals that are currently blocked, they are not received by the process), and then use the Sigaction () function to define the behavior of the process to receive a particular signal.General flow of signal processing:Program Examples:First, the Sigquit,
use of the system () function, and does not talk about the effects of SIGCHLD, SIGINT, and Sigquit on system () functions, and in fact, this article was written today because the system was used by someone in the project () The function caused a very serious accident. Now, as the system () function executes, an error occurs: "No child Processes". Call My_system () to perform the function of the system function (My_system function is implemented using
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.