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 > > 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 > > Added: head/usr.bin/timeout/timeout.c > ============================================================================== > --- /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 <b...@freebsd.org> > + * Copyright (c) 2014 Vsevolod Stakhov <vsevo...@freebsd.org> > + * 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 distribution. > + *~ same here
pgpm2RFoTuERI.pgp
Description: PGP signature