rij
Apr 20 2009, 07:30 PM
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.
michaelk
Apr 21 2009, 05:46 PM
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