Skip to Content
Advanced Programming in the UNIX® Environment, Third Edition
book

Advanced Programming in the UNIX® Environment, Third Edition

by W. Richard Stevens, Stephen A. Rago
May 2013
Intermediate to advanced
1024 pages
34h 32m
English
Addison-Wesley Professional
Content preview from Advanced Programming in the UNIX® Environment, Third Edition

13. Daemon Processes

13.1. Introduction

Daemons are processes that live for a long time. They are often started when the system is bootstrapped and terminate only when the system is shut down. Because they don’t have a controlling terminal, we say that they run in the background. UNIX systems have numerous daemons that perform day-to-day activities.

In this chapter, we look at the process structure of daemons and explore how to write a daemon. Since a daemon does not have a controlling terminal, we need to see how a daemon can report error conditions when something goes wrong.

For a discussion of the historical background of the term daemon as it applies to computer systems, see Raymond [1996].

13.2. Daemon Characteristics

Let’s look at some ...

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

Advanced UNIX Programming, Second Edition

Advanced UNIX Programming, Second Edition

Marc J. Rochkind
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9780321638014Purchase bookOther