I know I can run a program like this:
cprog >/dev/null 2>&1 &
and it'll basically run on its own and it is essentially detached from the console so I can go ahead and use the console for other tasks.
Is there any way, from within a C or C++ program, on Linux, for the program to detach itself from the console and operate as a daemon and be independent of the console instance from which it was started?



LinkBack URL
About LinkBacks




CornedBee