timeout applet (adding) patch

Denis Vlasenko vda at ilport.com.ua
Fri Feb 3 11:42:22 UTC 2006


On Friday 03 February 2006 13:32, Roberto A. Foglietta wrote:
> >>[roberto at wsraf busybox]$ ./busybox timeout --help
> >>BusyBox v1.1.1-pre0 (2006.02.03-09:48+0000) multi-call binary
> >>
> >>Usage: timeout [-v] <timeout_in_sec> [-f exit_status_file] [-s 
> >>int_signal] "<command line>"
> >>
> >>Runs the "command line" within a timeout window and returns its status.
> >>Options:
> >>         -v Displays verbose resource usage information
> >>         -f File name in which save the exit status

-f is superfluous, timeout can just return the same exit code
as the child.

> >>         -s Signal to send to the command line and its children 
> >>            after timeout expired
> 
> > 
> > softlimit from daemontools has a superset of this functionality.
> 
>   no it is different:
>   ------------------
> 
>   softlimit takes:
> 
> -t n: Limit the CPU time to n seconds. This limit is not enforced except 
> that the process receives a SIGXCPU signal after n seconds.
> 
> 
>   My timeout signal with a *specified* signal within N seconds of clock, 
> nothing about CPU time or other resources.

Ah, yes. Both may be useful. Maybe combine them in one command.
--
vda



More information about the busybox mailing list