have the parent exit. 3. Call setsid(). 4. Setup signal processing of SIGHUP and SIGTERM. 5. fork() again and have the parent exit. 6. Change the current working dir with chdir(). 7. fclose() stdin, stdout and stderr and don't write to them. 8. Process!