I have a child process running in the background it is created from the main program with the command
system("./habbit&");
How do I kill the child process without killing the main program?
Is there a command for doing this or some function?
If I use the fork command it freezes the main program.
Thanks...