Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Search this Thread
Old 04-03-2002, 12:18 PM   #1
Registered: Feb 2002
Location: India
Distribution: redhat 7.1
Posts: 70

Rep: Reputation: 15
about demon process

i created demon process using by creating session of newly forked process but i have hard something like demon_init() etc.

i have unsuccessfully tried it.

any help is appreciated
Old 04-04-2002, 11:15 AM   #2
Registered: Feb 2002
Location: India
Distribution: redhat 7.1
Posts: 70

Original Poster
Rep: Reputation: 15
further details

the following program given in
book advance programming under UNIX


int daemon_init(void)
pid_t pid;
if((pid = fork() ) < 0)
return (-1);
if (pid != 0)
return (0);

which i have tried generates errors in compilation


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL demon chocobanana Linux - Hardware 1 06-06-2005 05:24 PM
download demon for linux mepis rob69 Linux - Newbie 3 03-29-2005 05:00 AM
Apollon Demon Who? Jaster Linux - Software 0 11-16-2004 04:37 PM
Game Server Distro -- Speed Demon tonytnnt Linux - Distributions 2 12-03-2003 02:27 PM
problems running the Directfb demon sirpelidor Linux - Software 4 11-10-2003 04:40 PM

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration