I am working on a code which has several processes forked(). (linux - KDevelop)
The processes after they were created runs paralell in the background.
I want to read on a command line (like cinn >> kill=1 ) which tells the main process to kill all the childs and the main p., but I dont exactly know which process reads the input on the console.
How works the consol after forking. Which process reads the data from it?
Thanks for any suggestion.