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.

Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.