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 2 2488
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Greg Kuperberg |
last post by:
I want to run subprocesses with limits on the execution time and the
output size of the subprocess. If the subprocess exceeds limits, then
the parent should kill it gracefully (SIGTERM rather than...
|
by: Corey Wallis |
last post by:
Dear All,
I'm currently working on a project that needs to collect the output of
the JHOVE application. More information about the application is
available at this website:
...
|
by: Thomas Dybdahl Ahle |
last post by:
Hi, When I do a small program like
from subprocess import Popen
popen = Popen()
from time import sleep
sleep(100)
start it and kill it, the ping process lives on.
Is there a way to ensure...
|
by: Phoe6 |
last post by:
Hi all,
Consider this scenario, where in I need to use subprocess to execute a
command like 'ping 127.0.0.1' which will have a continuous non-
terminating output in Linux.
# code
# This...
|
by: bhunter |
last post by:
Hi,
I've used subprocess with 2.4 several times to execute a process, wait
for it to finish, and then look at its output. Now I want to spawn
the process separately, later check to see if it's...
|
by: Harishankar |
last post by:
Hi,
Sorry to start off on a negative note in the list, but I feel that the Python
subprocess module is sorely deficient because it lacks a mechanism to:
1. Create non-blocking pipes which can...
|
by: Samuel A. Falvo II |
last post by:
I have a shell script script.sh that launches a Java process in the
background using the &-operator, like so:
#!/bin/bash
java ... arguments here ... &
In my Python code, I want to invoke...
|
by: Michele Petrazzo |
last post by:
Hi all,
I believe that this is a *nix question, but since I'm developing in
python, I'm here.
I have a code that execute into a "Popen" a command (ssh). I need that,
if the python process die,...
|
by: itsraghz |
last post by:
Dear All,
I have an issue with destroy() method of java.lang.Process class. All what I am trying to do is, controlling the execution of one program through another. Let's say, Program B has to be...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |