Skip to main content

Questions tagged [process-groups]

2 votes
1 answer
57 views

Why is it that a Process Group Leader can't change its PGID? I know it sounds dumb for a leader to just abandon its own group, but what is the actual architectural reason behind this? What would ...
Bhushitha Hashan's user avatar
1 vote
1 answer
146 views

I need to prevent SIGINT (Ctrl-C) from propagating from a subshell to its parent shell functions in Zsh. Here's a minimal example: function sox-record { local output="${1:-$(mktemp).wav}"...
HappyFace's user avatar
  • 1,704
0 votes
0 answers
29 views

I have a script, script-A, which runs script-B. When run under the terminal, it terminates as expected from Ctrl-C, but when run via ssh it continues to silently run after Ctrl-C even though ssh ...
yong's user avatar
  • 351
1 vote
3 answers
2k views

Suppose that app X is running in the foreground in tmux pane. I'd like to send a given signal, e.g. SIGUSR1, to app X. Can I configure a tmux keybinding to send a signal to the currently-selected pane'...
Jasha's user avatar
  • 263
2 votes
1 answer
804 views

I am trying to capture the PID of a function executed in the background, but I seem to get the wrong number. See the following script: $ cat test1.sh #!/bin/bash set -x child() { echo "...
user000001's user avatar
  • 3,855
8 votes
4 answers
2k views

In POSIX, processes are “related” to each other through two basic hierarchies: The hierarchy of parent and child processes. The hierarchy of sessions and process groups. User processes have a great ...
Alexis King's user avatar
11 votes
3 answers
6k views

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 ...
Alex028502's user avatar
1 vote
1 answer
237 views

Is it possible that a past Progress Group Leader's PID gets reused by an other process and this latter process starts a new Process Group? In this case the first created process group and the second ...
bandie's user avatar
  • 393
1 vote
0 answers
62 views

I am interested why processes are grouped additionally while having already a PPID and PID. What's the advantage of process groups?
Lavair's user avatar
  • 111
7 votes
1 answer
2k views

The Advanced Programming in the UNIX Environment book ("APUE") says Consider a process that forks a child and then terminates. Although this is nothing abnormal (it happens all the time), ...
Tim's user avatar
  • 107k
2 votes
1 answer
806 views

In The Linux Programming Interface To see why orphaned process groups are important, we need to view things from the perspective of shell job control. Consider the following scenario based on ...
Tim's user avatar
  • 107k
7 votes
1 answer
7k views

Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure.
extremeaxe5's user avatar
  • 1,203
0 votes
2 answers
2k views

I searched a lot but didn't find a solution. So it can be silly question. The format of waitpid is pid_t waitpid (pid_t pid, int *status, int options) The pid parameter specifies exactly which ...
Prvt_Yadav's user avatar
  • 6,072
1 vote
2 answers
869 views

From Advanced Programming in the Unix Environment: A process can set the process group ID of only itself or any of its children. Furthermore, it can’t change the process group ID of one ...
Tim's user avatar
  • 107k
1 vote
1 answer
2k views

I am looking at a scenario where I want to run a program / command with sudo as part of a software test. The commands are launched from a Python script based on the subprocess module. I am attempting ...
s-m-e's user avatar
  • 525

15 30 50 per page