I'm having trouble understanding how SIGTERM "should" be handled with relation to child processes in Linux. I am writing a command line utility in ...
I'm having trouble understanding how SIGTERM "should" be handled with relation to child processes in Linux. I am writing a command line utility in ...
In Apache Nifi, is there any command to start particular process group from Command Prompt? ...
Given a Linux system, in Haskell GHCi 8.8.3, I can run a Docker command with: However, when I switch to create_group=True the process hangs. The ef ...
In Linux, each terminal is associated with only one session (a session has one or more process groups, and a process group has one or more processes). ...
(I'm using Bash 4.4.12 on Debian 8. Question also asked in the bash mailing list.) See the following steps to reproduce the problem. From tty #1 (pt ...
I was assigned to Write a C program that prints the following identifiers PID, PPID, SID, PGID, UID, EUID. The assignment then went on to ask ...
I'm confused about forwarding signals to child processes with traps. Say I have two scripts: a.sh b.sh If I execute a.sh and then from another ...
I'm trying to modify Linux kernel and I need to get the user ID and the process group ID from a task_struct and a pid_namespace. Although I searched t ...
I have the following simple program that sets the main program's pgid and pgroup for STDIN. Then, I have a signal handler that prints the pgid of the ...
The golang library function os.StartProcess() calls setpgid(0,0) in the child process after forking. It does this on the "linux" and "bsd" configurat ...
Say I have these two bash scripts: /tmp/trapper: /tmp/usr1er: trapper is supposed to trap USR1 and simply ignore it. It starts usr1er, which ki ...
I have a C program that operates by responding to signals. Some signals cause the parent to fork. This allows other processing while the parent contin ...
The short question is, what should a shell do if it is in an orphaned process group that doesn't own the tty? But I recommend reading the long questio ...
I have one question on Linux pid things. How to get pids in one same group? It seems easy to get all pids or pgid with 'ps' command in Linux, but how ...
I'm working on a library (C++) that will be integrated into clients code. This lib will spawn a few child processes and must monitor them to respawn t ...
I am programming a shell for my CS class and part of the project involves running a process in the background if the '&' character is passed in by ...
Suppose pid X is a process group leader and X terminates, but other processes in the process group remain running (with X as their pgid). Will Linux p ...
How to set process group of a shell script ? Also I want all the child process to be in the same process group I expect something similar to setpgid( ...
I would like to start a process in its own process group (or, alternatively, change its group once started) and: have the processes in the group r ...