What\'s the best way for a running C or C++ program that\'s been launched from the command line to put itself into the background, equivalent to if the user had launched fro
On Linux, daemon() is what you're looking for, if I understand you correctly.