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.


Sign Up Now
> daemon() - should it return?
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


I am looking at a code which goes as follos:

if (daemon(0,0) != 0)

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
Start new topic
Replies (1 - 1)
post Apr 21 2009, 05:46 PM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
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: 15th July 2018 - 04:32 PM