UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2007-06-26 08:13 AM

lijupn
Member
Registered: 2007-06-23
Posts: 3

Re: How can i make a process Daemon?

Hello,
        I am doing a project on remote login application. So how can i make the server program as Daemon process so that it can rum in back ground and wait for the next client to come.
                                                              Thank u,
                                                                              Liju.

Offline

#2 2007-06-26 01:09 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,833
Website

Re: How can i make a process Daemon?

Offline

#3 2010-08-12 12:13 PM

vgupta
Member
Registered: 2010-08-12
Posts: 3

Re: How can i make a process Daemon?

1. Set file creation mask to zero
2. Get maximum number of file descriptors
3. Become a session leader
4. Close all open file descriptors
5. Attach file descriptors 0, 1, and 2 to /dev/null

For complete implementation
visit http://simplestcodings.blogspot.com

-Varun

Offline

Board footer

Powered by FluxBB