From owner-svn-src-head@FreeBSD.ORG Wed Jul 16 11:51:25 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0A16503; Wed, 16 Jul 2014 11:51:24 +0000 (UTC) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E58942E77; Wed, 16 Jul 2014 11:51:23 +0000 (UTC) Received: by mail-lb0-f180.google.com with SMTP id v6so293928lbi.25 for ; Wed, 16 Jul 2014 04:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=gSn6Y+0uatIBZmDQIK8FGFVgF1O+WXmHpFHfviNS5Ew=; b=qVyfshIrjzkP7/gr/cDUpeg3ydtgEbDf3tf6W3X6BtQwEqxIvNMoZVVTINWOxxW1yp gO04m+Pg6Txm6wrd75CSGJQIselAYLtAzCUB3ClZqMyxqZ9RhcXI1V0qaZuFsmMiDKzM vqLl2ZyVC8xzU2IHIQ0OHcbGkJ4n0IgAIw4J07TWJhuPVFxraTYNBtvLHqfbNM7PAcMf lJsqDt/EmiZwsJdobLgYEDzUb272UvX5hBu0ih/J9XMp1JSpQF62IH+ccymBWEJUiU8Q xKEj5oIqLbvd33wMOvLWD6+ejpzffPTZ3sJ+lAq8v42UG4GtSiShFTLkX/Rgzh2xD9MC TypA== X-Received: by 10.152.243.34 with SMTP id wv2mr3951735lac.58.1405511481797; Wed, 16 Jul 2014 04:51:21 -0700 (PDT) Received: from omg (pluknet-1-pt.tunnel.tserv11.ams1.ipv6.he.net. [2001:470:1f14:4d0::2]) by mx.google.com with ESMTPSA id ok1sm21888242lbc.18.2014.07.16.04.51.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jul 2014 04:51:20 -0700 (PDT) Sender: Sergey Kandaurov Date: Wed, 16 Jul 2014 15:51:17 +0400 From: Sergey Kandaurov To: Baptiste Daroussin Subject: Re: svn commit: r268745 - in head/usr.bin: . timeout Message-ID: <20140716115117.GA30868@omg> References: <201407160955.s6G9taro084054@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <201407160955.s6G9taro084054@svn.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 11:51:25 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 16, 2014 at 09:55:36AM +0000, Baptiste Daroussin wrote: > Author: bapt > Date: Wed Jul 16 09:55:36 2014 > New Revision: 268745 > URL: http://svnweb.freebsd.org/changeset/base/268745 >=20 > Log: > New BSDL timeout(1) utility compatible with GNU timeout The purpose of this utility is unclear. [...] > +.Ar args > +and kills if it is still runs after > +.Ar duration . > +.Bl -tag -width "-k time, --kill-after time" mdoc warning: A .Bl directive has no matching .El > +.It Fl -preserve-status > +Always exist with the same status as > +.Ar command > +even if it times out. > +.It Fl -foreground > +Do not propagate timeout to the > +.Ar command > +children. > +.It Fl s Ar sig , Fl -signal Ar sig > +Speficy the signal to send on timeout by default > +.Ar SIGTERM . > +.It Fl k Ar time , Fl -kill-after Ar time > +Send a second kill if the > +.Ar command > +is still running after > +.Ar time > +seconds after the first signal was sent > +.Sh SEE ALSO > +.Xr signal 3 , > +.Xr kill 1 >=20 > Added: head/usr.bin/timeout/timeout.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/usr.bin/timeout/timeout.c Wed Jul 16 09:55:36 2014 (r268745) > @@ -0,0 +1,336 @@ > +/*- > + * Copyright (c) 2014 Baptiste Daroussin > + * Copyright (c) 2014 Vsevolod Stakhov > + * All rights reserved. > + *~ hah? looks like an editor issue > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer > + * in this position and unchanged. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distributio= n. > + *~ same here --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJTxmc1AAoJED9Ol7oQYHQZdXoH/2rwdvZNkNVjmyzKW2As0G6K JRk+7MiiGizryF88/YA13x7b4uh3f7bFRuP52NC2DXdGiwSLGqNq2brhDadOVJFW QRNKV7B1iSRn5++vi2EE/pFv+wPkTMbuH69UK2ktCC4eSH08U7Y31zuFEZal7q8Q R8uDwfsPIGoGL4l05Ya1mliLc8LlczwI9sguh6cWktgckcBopfZSYXkrh3PteveW CyYsxiKXDh+plNf33nbWYqQvtdxidqcRsreQGLORl8LpVzZ7GqfZBgMWz8+FXkAI nRJimwUqEPZml4HzgQmg0RDsyq++15vliCKwz7VE3o5WCzi21ukAWhW4hFCu15I= =wYWd -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--