Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 20:23:43 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Problem stopping a program
Message-ID:  <20060330042343.GA19463@odin.ac.hmc.edu>
In-Reply-To: <E47528F6C6B025B2D093C0C4@Paul-Schmehls-Computer.local>
References:  <6F8EC8DCFAC4D47258FEF35B@Paul-Schmehls-Computer.local> <200603300300.53523.danny@ricin.com> <E47528F6C6B025B2D093C0C4@Paul-Schmehls-Computer.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 29, 2006 at 09:15:58PM -0600, Paul Schmehl wrote:
> --On March 30, 2006 3:00:53 AM +0200 Danny Pansters <danny@ricin.com> wro=
te:
> >>
> >>Here's an example:  /usr/local/etc/rc.d/sguild.sh restart
> >>Stopping sguild
> >>Waiting for PIDS: 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554
> >>4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558
> >>4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559,
> >>4554 4558 4559, 4554 4558 4559,
> >>
> >>This will go on indefinitely.  If I kill the process and then try
> >>restarting again, the child processes are gone, but the parent process =
is
> >>not.
> >
> >Try pkill/pgrep (p=3Dparent) ?
> >
> That seems a bit of overkill.  I'd have to make pkill a RUN_DEPENDS,=20
> forcing the user to install it just to kill the process.  As it turns out=
,=20
> it appears that TERM won't kill the process if it's been running for a=20
> while, but KILL will.

One dep with a 7K of source tarball doesn't seem too serious,
particularly since it wouldn't actually be a depend on any recent system
since pkill is in the base.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFEK11OXY6L6fI4GtQRAi8oAJ9rEmBRzwNI7b9PsvHLwVc5lQbRWQCgrQA0
hnOoTgH71m/sTZOUViAZds0=
=krs/
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060330042343.GA19463>