I am building a small shell for school. I have the forground tasks handled with fork(), execvp() and waitpid().
Now I need to handle background tasks. I'm handling parsing out the & at the end.
I need to know how to send the child to the background
AND
how to set up an asynchronous waitpid() so that I know when the task completes. (I have to print usage information which I believe I can process the same way as my foreground tasks.
Thanks!