Currently, I have a shell which uses fork and execvp to execute commands. However, I am wondering how I can implement the ampersand feature of unix. ie program will not wait for process to complete.
for example if i execute: emacs &
the program should return to the command prompt without waiting for emacs to close!
Thanks for any help,