Subject: Re: kill(1) a pid after timeout
To: None <email@example.com>
From: Jan Schaumann <firstname.lastname@example.org>
Date: 07/25/2007 10:03:43
Content-Type: text/plain; charset=us-ascii
Bill Stouder-Studenmund <email@example.com> wrote:
> What will kill do after this change if the process exits before the=20
> timeout? Further, say another process gets started using the same PID=20
> before the timeout. Will it get killed instead?
I think you misunderstood. The way "kill -t timeout" would work is not
to start kill(1), then wait _timeout_ seconds, and then send the signal.
Instead, kill(1) would look at the process's running time, check if it's
been running longer than _timeout_ seconds, and if so send the signal
I understand that the wording "timeout" (as was noted by somebody else)
may have caused this misunderstanding.
The Internet interprets censorship as damage and routes around it.
-- John Gilmore
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
-----END PGP SIGNATURE-----