Skip to main content

Questions tagged [process-management]

Use this tag when the topic is about system process management. Commands used for this are like ps and kill -9 xxxx and service xyz start|stop|restart and htop, for example. Often used in conjunction with memory management.

0 votes
0 answers
100 views

I am new to Linux and attempting to understand its management of child processes. I have read that child processes do not necessarily exit when their parent does, but I have observed mostly contrary ...
user49539's user avatar
1 vote
0 answers
205 views

I have here a not really fine app, partially out of my control. Sometimes it stops and I want to restart it, and some extra options. So, if it exists, I want to start my script. Poor man solution ...
peterh's user avatar
  • 10.5k
2 votes
1 answer
151 views

I am using the following version of the bash: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) When I start some command (e.g. ./hiprogram) directly from the terminal, then bash forks itself,...
Yakog's user avatar
  • 517
0 votes
0 answers
68 views

I have a Python script that is running subprocesses that calls gdb --batch. That script needs to handle Control-C (SIGINT). While one of the GDB subprocesses is running, if I send a Control-C on the ...
J Howe's user avatar
  • 1
0 votes
3 answers
144 views

I face a situation that features Bash scripts on a Linux installation that asynchronously run system tools with a delay, via a ( sleep 10 ; some_command ) & construct. The scripts that perform ...
AdminBee's user avatar
  • 23.6k
2 votes
1 answer
98 views

I am using Ubuntu (linux). I have the following two simple programs. Parent: package main import ( "fmt" "syscall" "time" ) func main() { attr := &...
Yakog's user avatar
  • 517
0 votes
0 answers
70 views

I've been writing a script that spawns a child process as a different user via sudo then I realized that my script is not getting SIGINT as opposed to when I run it without sudo. As suspected strace ...
Ahmet Sait's user avatar
1 vote
1 answer
113 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
1 vote
1 answer
266 views

I'm aware that because of PID-reuse on Unix-like kernels, signals can be delivered to the wrong process if they are sent after the PID has already been reaped. Discussion of what follows will probably ...
Ani Agarwal's user avatar
2 votes
5 answers
2k views

I want to run a process that spawns children, e.g., for i in {1..4}; do sh -c 'echo $$; for j in {1..3}; do sh -c "echo ...\$\$; sleep 1" done' done and I would like to monitor the ...
wobtax's user avatar
  • 1,195
1 vote
1 answer
344 views

I'm looking for a way to run a process, which itself may spawn off more child / grandchild / etc. subprocesses. Then: Be able to send a signal (e.g. TERM or KILL) to all descendants. Be able to ...
Vladimir Panteleev's user avatar
1 vote
1 answer
743 views

I'm using the Linux Citrix client and the latest versions has a tendency to leave processes behind. I came up with a little script to kill them using old-school unix commands and it works very well. ...
Thomas Guyot-Sionnest's user avatar
1 vote
1 answer
300 views

I have a systemd service named vcoagent.service running on my Linux system, and I'm trying to understand how memory limits specified for the service (Memory: 300.3M (limit: 500.0M)) apply to the ...
Ackerman Shadow's user avatar
3 votes
1 answer
446 views

A Linux thread or forked process may change its name and/or its commandline as visible by ps or in the /proc filesystem. When using the python-setproctitle package, the same change occurs on /proc/pid/...
Juergen's user avatar
  • 764
0 votes
0 answers
65 views

I was looking at dmenu_run, which is the default dmenu script to launch a program, and saw this part of it that intrigued me: [..other stuff..] | dmenu | sh & So I did some testing. Prerequisites ...
mutageneral's user avatar

15 30 50 per page
1
2 3 4 5
25