I have program a shell to start several process.All process are running in
background, but only one process running
proc_fore4 #for display info
when I start the shell ,it is ok, all process running rightly.
But when I use “ctrl+c” to terminate the foreground process “proc_fore4”,all
processes in the shell running in background are also terminated!
The proc1,proc2,proc3 are all running in background!!!
why does this happen?
if I only start the 3 background processes ,and then use command line to
running the “proc_fore4”.Every thing is ok(the 3 process are running ok
,never terminated), even if I terminate the process “proc_fore4”.
How to avoid the background process terminated when I terminate the
foreground process start in shell?