Questions tagged [process-groups]

The tag has no usage guidance.

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
90 views

Parent restarted by child doesn't respond to CTRL-C

I wrote a program. It starts a process (call it A) that spawns a child process (call it D) that shutdowns and restarts A. Problem is, now I can't kill A nicely from the terminal (ie. CTRL-C isn't ...
1
vote
0answers
229 views

how can I start a bash script in its own process group

I would like to start a bash script from another bash script, but start it in its own process group just like when you run it from the terminal. There are a few similar questions, but I can't find an ...
1
vote
1answer
125 views

Why the process run by the shell does not inherit the shell's Process Group ID?

I have read that when Process A start Process B, then Process B will inherit Process A's Process Group ID. I tested this by making bash execute the cat program, but I found out that bash and cat had ...
1
vote
0answers
289 views

Work with setsid to open a session and close it correctly

I would like to create the following script: -- run a python script with setsid -- python may or may not fail with exception -- check if all of the group processes were terminated correctly -- if ...
1
vote
0answers
794 views

pkill -P $ID working while kill — -$ID not

I was playing around with creating and killing process groups on linux ( ubuntu ) I am trying to kill a process group and am being driven crazy by the fact that pkill -P $ID works while kill -- -$ID ...
0
votes
0answers
19 views

Grouping processes in MINIX

I want to create a way of grouping user processes according to their PID - process belongs to group A when its PID is even (divisible by 2) and to group B otherwise. Basis on that I want to create a ...
0
votes
0answers
33 views

Can a process group exist without a process group leader

Saying that I have two bash scripts as below: #!/bin/bash # this is test.sh ./test2.sh and #!/bin/bash # this is test2.sh while : do sleep 2 done After executing the test.sh with the command ....