Subject: Re: kill(1) a pid after timeout
To: None <tech-userlevel@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-userlevel
Date: 07/24/2007 17:50:53
--+1TulI7fc0PCHNy3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Daniel Carosone <dan@geek.com.au> wrote:
> On Tue, Jul 24, 2007 at 03:36:30PM -0700, Jan Schaumann wrote:
> > I want to be able to kill processes that have not been started with a
> > fixed ulimit.
>=20
> That's why you can change the rlimits of running processes via sysctl.

Right, but so in this case I'd have to

- sysctl pid
- kill pid

This doesn't save me much work versus

- ps
- calculate timeout manually
- kill pids

So I'm lazy and want but one command to do that. :-)

Besides,  SIGXCPU only counts CPU time -- I want "real" time.
Furthermore, I may want to send a different signal to a pid that's been
running for longer than <timeout>.

-Jan

--=20
Information wants to be free.
Information wants to be useful.

--+1TulI7fc0PCHNy3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFGpp5tfFtkr68iakwRAgWpAKDpdw2lAKow/47Cs8qo92h7JrEQ7gCghvdE
1fNunJD5vZyWKLjzwEE2/5g=
=wqCI
-----END PGP SIGNATURE-----

--+1TulI7fc0PCHNy3--