I have written a C program.Inside that i have called system("java JavaProg");.It is working fine but still the java process is terminated the C process is running.I want when the java process terminates normally or abruptly C process should automatically terminate.How to do it ?
Yes, I would need to seed the C program as well. You may need to make sure that the main() function is declared as int, and returns 0 to the operating system... or you may even need to exit explicitly by call an op-sys function. That's what springs to my mind.
I wish I knew more about the paticular code and the environment from which you are running.