[Feature complete] Place subreapers in your process tree to keep it structured
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Mattias Andrée b1be4de9c4 Improve makefile + m whitespace fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
2 years ago
.gitignore Fix makefile and test 2 years ago
DEPENDENCIES Rewrite and relicense 6 years ago
LICENSE Bump year 2 years ago
Makefile Improve makefile + m whitespace fix 2 years ago
README Rewrite and relicense 6 years ago
arg.h Fix arg.h 6 years ago
config.mk Improve makefile + m whitespace fix 2 years ago
orphan-reaper.1 Rewrite and relicense 6 years ago
orphan-reaper.c Improve makefile + m whitespace fix 2 years ago
reapd.c Rewrite and relicense 6 years ago
test.c Fix makefile and test 2 years ago

README

NAME
	orphan-reaper - Keep your process tree clean

SYNOPSIS
	orphan-reaper [-f] command...

DESCRIPTION
	This user daemon spawns a process and reaps all orphaned
	grandchildren. This is useful if you want to keep your
	process tree clean. For instance if you want all programs
	started from inside the same display server instance to
	appear to be inside that display if you look inside the
	process tree, rather than all processes that loses their
	parent being reparented to PID 1 and make a mess on your
	process tree.

OPTIONS
	-f
		Fail if the process cannot become a subreaper.

RATIONALE
	It is really nice to have a processes that are running
	inside a display server to be a grandchild of the
	display server, rather than being reparanted to PID 1.
	Especially when multiple display servers are running.

SEE ALSO
	prctl(2), pstree(1), htop(1)