Subject: Re: kill(1) a pid after timeout
To: Michael van Elst <>
From: Phil Nelson <>
List: tech-userlevel
Date: 07/25/2007 12:18:20
Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 24 July 2007 10:04:12 pm Michael van Elst wrote:
> I'd rather see a 'runsomethingwithtimeout' command than such a
> flag to kill.

There is "deadman" in localsrc/releng/deadman that runs a command
with a timeout and then kills the process if it has not finished.

  deadman numsec command-to-run with-args   ...

This is used on the build clusters to make sure builds don't run too long.


p.s.  Yes, this is different than the proposed -t flag to kill/pkill.

Phil Nelson                       NetBSD:
e-mail:           Coda:

Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

Version: GnuPG v1.4.7 (NetBSD)