Why don't you just use
system("command &"); to background the command that you are running and then have the fork
exit (0);? (Remember to install a signal handler for CHLD. Also, check whether or not your fork is defined. If it isn't, die -- you've run out of system resources and are probably fork bombing your box).
Want to support the EFF and FSF by buying cool stuff? Click
here.