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
 
Reply to this topicStart new topic
> 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
michaelk
post Apr 21 2009, 05:46 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



What code are you trying to run? Looks like an example to me and not real source code.

Typically foo, bar or foobar are used in generic terms and hopefully not real function names.
foobar -> FUBAR
Go to the top of the page
 
+Quote Post

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: 17th October 2017 - 03:00 AM