Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Beaglebone Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Beaglebone Essentials

Beaglebone Essentials

By : Rodolfo Giometti
5 (2)
close
close
Beaglebone Essentials

Beaglebone Essentials

5 (2)
By: Rodolfo Giometti

Overview of this book

If you are a developer with some hardware or electrical engineering experience who wants to learn how to use embedded machine-learning capabilities and get access to a GNU/Linux device driver to collect data from a peripheral or to control a device, this is the book for you.
Table of Contents (13 chapters)
close
close
12
Index

What is a daemon?

As already stated, a daemon is a computer program that runs as a background process. In particular, for an Unix system, the Unix Bible, Advanced Programming in the UNIX Environment, Addison-Wesley, by Richard Stevens says:

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 shutdown. We say they run in background, because they don't have a controlling terminal.

This behavior is so important that a special function has been implemented in the glibc library that permits the developer to easily create a daemon process. The function is (obviously) named daemon().

You can see its documentation using the following command on every GNU/Linux system:

$ man daemon

Just to fix this concept, let's take a look at a possible implementation of the daemon() function in order to show you which steps a process should perform to turn itself into a daemon:

int daemon(void)
{
   int fd;

   /*...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Beaglebone Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon