Can the subprocess kill its parent process?

  • Thread starter Thread starter YXQ
  • Start date Start date
Y

YXQ

Hello,
In the parent process(A), run update function, and start the update
process(B), in B process, kill A, then download and update files, then
restart A.
I want to know can the B process kill A process?
Thank you
 
Hello,
In the parent process(A), run update function, and start the update
process(B), in B process, kill A, then download and update files, then
restart A.
I want to know can the B process kill A process?
Thank you

As you stated like they're seperate processes, killing process A "may"
kill process B if process B(updater process?) has an explict
dependency with process A. You may have seen many applications like
Firefox is needed to close main application to perform update
operation and restart main application again. So, it depends on what
you're trying to do and how you update your application.

Thanks,

Onur
 
Sorry, please ignore this problem, the parent process can be killed normal
using the kill function in subprocess.
 
Back
Top