Gentoo Archives: gentoo-dev

From: splite-gentoo@××××××××××××××××.edu
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: strange gentoo shutdown sequence
Date: Tue, 04 May 2004 15:33:17
Message-Id: 20040504153316.GB7040@sigint.cs.purdue.edu
In Reply to: [gentoo-dev] Re: strange gentoo shutdown sequence by "Sven Köhler"
1 On Tue, May 04, 2004 at 05:13:52PM +0200, Sven K?hler wrote:
2 > >It's not a real problem because init only signals processes still in init's
3 > >process group, and there usually aren't any. (Run "ps -eo pid,pgrp,cmd" to
4 > >see if any are, if you're curious.)
5 >
6 > well why is the shell inside my gnome-terminal killed (and restarted by
7 > gnome-terminal over and over again) if i execute halt?
8
9 Because halt also signals all processes, independently of init. Look at
10 the top of /etc/init.d/halt.sh:
11
12 | ebegin "Sending all processes the TERM signal"
13 | killall5 -15 &> /dev/null
14 | eend $?
15 | sleep 5
16 | ebegin "Sending all processes the KILL signal"
17 | killall5 -9 &> /dev/null
18 | eend $?
19
20 --
21 gentoo-dev@g.o mailing list

Replies

Subject Author
[gentoo-dev] Re: strange gentoo shutdown sequence "Sven Köhler" <skoehler@×××.de>