Can the subprocess kill its parent process?

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
 
K

kimiraikkonen

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
 
Y

YXQ

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top