Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
LINUX系統程式設計 第二版
by
Robert Love
December 2013
Intermediate to advanced
496 pages
8h 57m
Chinese
GoTop Information, Inc.
Content preview from
LINUX系統程式設計 第二版
信號
|
357
數的映射取決於實作方式,而且不同的
Unix
系統會有所差異,雖然最前面的
12
個信號
通常採用相同的映射方式(例如,
SIGKILL
就是聲名狼籍之編號為
9
的信號)。一個好的
程式設計者總是會使用信號之可供人類閱讀的名稱,而絕對不會使用它的整數值。
信號的編號始於
1
(通常就是
SIGHUP
),而且會繼續線性地向上成長。總共大約有
31
個
信號,但是多數程式只會固定使用其中幾個信號。沒有任何信號會使用值為
0
的編號,
這個特殊值就是所謂的
空信號
(
null signal
)。事實上,空信號並不是十分重要—它並不
會具有一個特殊的名稱—但是有些系統呼叫(例如
kill()
)會使用值為
0
的編號來代表
一種特殊情況。
你可以使用
kill -l
這道命令列出你的系統所支援的信號。
Linux
所支援的信號
表
10-1
列出了
Linux
所支援的信號。
表
10-1
信號列表
信號
說明
預定行為
SIGABRT
送出自
abort()
終止(
terminate
)並傾印
記憶體(
core dump
)
SIGALRM
送出自
alarm()
終止
SIGBUS
硬體或對齊錯誤
終止並傾印記憶體
SIGCHLD
子行程已被終止
忽略
SIGCONT
行程中止後繼續執行
忽略
SIGFPE
算術例外事件
終止並傾印記憶體
SIGHUP
行程的控制終端機被關閉(最常見的情況是,用戶登出
系統)
終止
SIGILL
行程試圖執行一個非法指令
終止並傾印記憶體
SIGINT
用戶產生了中斷字符(
Ctrl-C
)
終止
SIGIO
非同步
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
優雅的SciPy|Python科學研究的美學
Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
成為卓越程式設計師的38項必修法則
Pete Goodliffe
深入理解運算原理|從簡單的機器到無所不能的程式
Tom Stuart
C++语言导学(原书第2版)
本贾尼 斯特劳斯特鲁普
Publisher Resources
ISBN: 9789862769812