I have a BASH script which contains two separate processes: process_A,
process_B. Process_A runs in the background and Process_B supplies
a series of data for Process_A.
Now the problem is: After I quit the process_A, the process_B is still
alive and keeps working until all the data is exhausted. What I want
is: when I kill process_A, the process_B also dies and the shell
script terminates totally. The point is: how can I detect the end of
process_A and make it known to process_B as well. I couldn't work it
out with the command 'trap' because the termination of process_A is
not done by 'signal' but by the internal 'quit' device of process_A.
Thanks for any ideas.
Tae.