I have two process p1,p2 started using execl or system
I am trying to send input from the keyboard simultaneously to both the process.I have no access to the codes of both.
When p1 terminates I must terminate p2
Please give some clues I'm really stuck
Nandini
The way to work is (for the second question),write a program
that asks the active processes (every 2 secs or so) and search for "p1",when it has disappeared from the output,execute a kill on p2.
What about the keyboard input?
You really should give us some more explanation...
Greetz,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.