I have a forked child process running which executes a system command
killing the child using os.kill(child_pid, SIGKILL) stops the child process but the system process continues !
Can something be done to stop the system process also?
A part of the code is something like this:
#Child
child_pid = os.fork()
if child_pid == 0:
res = os.system("python abc.py")
os.write(w, str(res))
python abc.py has an infinite loop. I want to stop that after a certain time for which i kill the child but I found out that the execution of the file still continues !!
Please help! Urgent!
Thanks in advance :)