Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> daemon() - should it return?
rij
post Apr 20 2009, 07:30 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 20-April 09
Member No.: 14,412



Hello,

I am looking at a code which goes as follos:

if (daemon(0,0) != 0)
foo();
else
bar();

When I run the code, neither foo() nor bar() gets executed. Could someone please shed some light?

I am using CentOS 5.

Thanks in advance.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th November 2017 - 10:37 AM