DAEMON PROCESS PROGRAM IN LINUX
Answers
Answered by
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.
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
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