469,950 Members | 1,871 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Can the subprocess kill its parent process?

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
Aug 1 '08 #1
2 2354
On Aug 1, 5:51 am, YXQ <Y...@discussions.microsoft.comwrote:
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
Aug 1 '08 #2
Sorry, please ignore this problem, the parent process can be killed normal
using the kill function in subprocess.

"kimiraikkonen" wrote:
On Aug 1, 5:51 am, YXQ <Y...@discussions.microsoft.comwrote:
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
Aug 1 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Greg Kuperberg | last post: by
reply views Thread by Corey Wallis | last post: by
15 posts views Thread by Thomas Dybdahl Ahle | last post: by
9 posts views Thread by Phoe6 | last post: by
12 posts views Thread by bhunter | last post: by
8 posts views Thread by Michele Petrazzo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.