Is the child process in foreground or background on fork in C

When I perform a fork() in C on Linux, is the newly created child a foreground or a background process?

If it is foreground by default, is there any way to force it to be created as a background process?

I read through quite a few links about fork, but whether it’s foreground or background is not mentioned anywhere.

http://en.wikipedia.org/wiki/Fork_(system_call)

http://linux.die.net/man/2/fork

http://www.csl.mtu.edu/cs4411.ck/www/NOTES/process/fork/create.html


Source: linux

Leave a Reply