Questions tagged [orphan-process]
7 questions
2
votes
0 answers
Prevent socat from orphaning EXEC: processes?
I'm creating a quick socat TCP listener and then running a simple expect script.
Let's start the listener:
socat TCP-LISTEN:5000,fork EXEC:my_exp_script
Which then listens on port 5000, accepts, forks, and executes my_exp_script…

Jé Queue
- 10,359
- 13
- 53
- 61
1
vote
0 answers
Zombie vs Orphan process with sleep
I have the next code and I need to check the child process' status, but the sleep() confuses me. I think that the child becomes zombie for a period of time (until the parent finishes sleeping and waits). If this is correct, then what happens if the…

ineedhelppls
- 11
- 1
1
vote
1 answer
"gnome-terminal --" exits with all forks terminated
I wrote a simple C program to create orphan process:
int main(){
int pid = fork();
if(pid == 0){
execl("/usr/bin/firefox", "firefox", (char*)0);
}else{
sleep(2);
return 0;
}
}
I compile this file to a.out and run the…

Simon
- 113
- 4
1
vote
0 answers
Troubleshooting Orphaned DataSnap Thread
Background Information
I have a DataSnap service that allows TCP connections from clients, and uses two filters, 1) compression, and 2) PC1 encryption. The service has an array of database connections, which allows users to connect to one of 100+…

James L.
- 9,384
- 5
- 38
- 77
0
votes
0 answers
How to terminate child processes & grand children if the parent dies abnormally in c
For example:
We have a process P1 which invokes another process (i.e. script) P2, now P2(script) invokes another process (i.e. script) P3 and now P3 invoke P4.
So, if there is an abnormal termination of P1, how can we terminate P2, P3 and P4.
P1 is…

Kuldeep Kumar
- 11
- 3
0
votes
1 answer
Github action terminate helm orphan process and release stuck in "pending-install"
I'm creating a GitHub action pipeline to deploy backend application to AKS. I try to follow this tutorial https://learn.microsoft.com/en-us/learn/modules/aks-deployment-pipeline-github-actions. First, I follow along with the tutorial with my demo…

WARIT BOONMASIRI
- 31
- 8
0
votes
2 answers
Need to create a orphan process in perl
HI I am trying to execute a code by forking a child process.
I have ruby code a.rb in which i use system call
system("perl abc.pl -subroutine='a' -command='b' -status='c' -logfile='d' -start_datetime='e'")
now in abc.pl i am doing this
my $pid =…

PCM
- 21
- 2