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
/**Deamonize*/ pid_t pid; pid = fork(); /**father makes a little deamon(son)*/ if(pid>0) exit(0); /**father dies*/ while(1){ printf("Hello I'm your little deamon %d\n",pid); /**The child deamon goes on*/ sleep(1) } /** try 'nohup' in linux(usage: nohup &) */