Omgili - forum search, search forums  
  

Discussions about parent process

Displaying 1 - 10 out of 78,064 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Is there a way for a child process in Python to detect if the parent process has died?
Started by on , 4 posts by 4 people.  
The only, and then checking, but of ....
This can cause a signal to be sent to the child when the parent process dies.
You might get away with reading your parent process' ID very early in your process the answer here .
I'm using CreateProcess to exec Notepad.exe, but the process parent of notepad is my own AP. When I closed my own AP, the process parent of notepad became to explorer. How would I do to put explorer as process parent for this new opened process?
Started by on , 4 posts by 4 people.  
Then here....
However, from what code, that duplicates handles and the environment from the parent process, there is no further special process.
There is no built in way to set explorer.exe as the parent process right away.
Hi When I call GetForegroundWindow from c# I am getting the explorer parent process ID (I see this from process explorer) and not the process ID of the app that is in the foreground. Why is this and how do get the right process ID? Malcolm
Started by on , 3 posts by 3 people.  
So what other functions do you use to get the process ID from the window handle you get = true)] public static extern int GetForegroundWindow....
The API function GetForegroundWindow gets you a handle to the top window, not the process ID.
Ask your Facebook Friends
I am calling a csh script that the first thing it does is starts a new group. I need to be able to see the standard output from the child process that is executed after the fork. I also want the parent process to 'hang' unitl the child process is finished...
Started by on , 6 posts by 3 people.  
It is a Sun Solaris 7.0 I got The script to work .
Automatically see the output from the child process.
Hi: I have a window form application written in c# lauch perl script. Everything is working except one problem. When the perl script run, it runs as a process launch by c# application. There are some delays I put in the perl script to wait for messages...
Started by on , 3 posts by 3 people.  
So even though you're correct that the Perl process can run separately and not affect the parent app....
() , you are causing the C# application to block and wait for the spawned process (the Perl program) to completely finish and exit.
I have a program spawning and communicating with cpu heavy, unstable processes, not created by me. If my app crashes or is killed by sigkill, I want the subprocesses to get killed as well, so the user don“t have to track them down and kill them manually...
Started by on , 4 posts by 4 people.  
It's a hack, but you could always call 'ps' and search for the process name your trying '{ print $1}' | xargs....
A separate small "monitor" process with the role of keeping track of all of its siblings (your parent are trying to use it.
Hi, It seems to me killing either of parent and child processes will not affect the other. So if want to kill a parent process and all its child processes, I guess I have to kill them one by one. I wonder which way is better: kill the parent first then...
Started by on , 3 posts by 3 people.  
If you want to kill a parent with some childs, you can use ps with extended....
Or you can kill them all at once with kill pid1 pid2 .. .
You should first kill the child processes and than the parent processes to prevent zombies.
I am launching a child process with ProcessBuilder, and need the child process to exit if the parent process does. Under normal circumstances, my code is stopping the child properly. However, if I cause the OS to kill the parent, the child will continue...
Started by on , 5 posts by 5 people.  
SIGKILL on Unix), you can protect against other signals that cause your parent process to shut, but there's no hard connection....
They may know each others process ID (e.g.
There is no tie between a child process and its parent.
I was looking a lot for method to get parent process in .NET, but found only P/Invoke way.
Started by on , 3 posts by 3 people.  
Pc.NextValue()); This code provides a nice interface for finding the Parent process object and takes Process Parent(this Process process) { return FindPidFromIndexedProcessName(FindIndexedProcessNameHere is ....
On OS X 10.4/5/6: I have a parent process which spawns a child. I want to kill the parent without killing the child. Is it possible? I can modify source on either app.
Started by on , 3 posts by 3 people.  
If the parent is a shell, and you want to launch a long running process then logout, consider nohup() if pid > 0: # exit first parent sys.exit(0) except OSError, e: print >>sys.stderr, "fork #1 failed: %d (%s)" % (e.errno....
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Server Fault
Related Searches
parent process    perl get parent process    child-parent process unix    net find parent process    php get parent of process    getting parent process id in a batch   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost