Computer Science, asked by naidu121kommulla, 1 year ago

DAEMON PROCESS PROGRAM IN LINUX

Answers

Answered by siasword
0
Fork off the parent process.
Change file mode mask (umask)
Open any logs for writing.
Create a unique Session ID (SID)
Change the current working directory to a safe place.
Close standard file descriptors.
Enter actual daemon code.
Answered by smartykrishna30
1

Basic Daemon Structure

Fork off the parent process.

Change file mode mask (umask)

Open any logs for writing.

Create a unique Session ID (SID)

Change the current working directory to a safe place.

Close standard file descriptors.

Enter actual daemon code.

Similar questions