by ur-whale · 4y ago · 0 comments
This, IIRC used to be the standard behavior back in the days, but in recent years, for some reasons, things have not been so simple.
Looking at the man page of ps(1) sort of starts to elucidate the effing mess that the name "group" summons the in unix process world.
Are we talking about the real group id (RGID), the effective group id (EGID), the controlling progress group id (TPGID), the control group (CGROUP) the textual group id (EGROUP), the filesystem group id (FGID), the textual filesystem group id (FGID), the process id of the process group leader (PGID), the saved group id (SGID), the session id (SID), the supplementary group id (SUPGID), the thread group id (TGID) ?
I'm pretty sure I'm missing some.
What an effing mess.
Catching SIGINT and detaching from the controlling terminal are pretty old concepts.
are you sure? let's assume you typed "service httpd start". it starts the init script which starts the httpd in the background. IMO most in use-cases you don't want to kill everything ever forked from the current shell.
* http://jdebp.info./Softwares/nosh/bsd-service-command.html