BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000680 [BusyBox] New Features feature N/A 02-03-06 02:18 10-15-08 12:24
Reporter robang74 View Status public  
Assigned To BusyBox
Priority normal Resolution open  
Status assigned   Product Version svn
Summary 0000680: timeout applet (new feature)
Description Puts in run a command line and if it does not terminate within a specified timeout it signal with a specified signal the commands and all its children. In both case report the exit status of the command and it is able to save it also in a file which could after read by a script or other command. It does NOT need /proc mounted.

[roberto@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
        -s Signal to send to the command line and its children
                after timeout expired






 
                                                                                                               
Additional Information It applies and compile sagainst SVN 13802.

[roberto@wsraf busybox]$ size libbb/talarm.o
   text data bss dec hex filename
   1183 20 12 1215 4bf libbb/talarm.o

[roberto@wsraf busybox]$ size miscutils/timeout.o
   text data bss dec hex filename
    894 24 12 930 3a2 miscutils/timeout.o

Attached Files  timeout_applet.tgz [^] (5,439 bytes) 02-03-06 02:18
 timeout_applet-0.2.7.tar.bz2 [^] (5,431 bytes) 07-11-06 01:08

- Relationships

- Notes
(0001515)
robang74
07-11-06 01:08
edited on: 07-11-06 01:18

Applet version 0.2.7 applies against busybox v1.1.3, changelog:

a) Note: 0000600bytes less than previous applet version
b) 1 bug less than previous applet version
c) added regression test in testsuite

[roberto@GEDX0327 busybox-1.1.3]$ size libbb/talarm.o
   text data bss dec hex filename
   1176 20 12 1208 4b8 libbb/talarm.o

[roberto@GEDX0327 busybox-1.1.3]$ size miscutils/timeout.o
   text data bss dec hex filename
    316 24 0 340 154 miscutils/timeout.o


Some options have been removed, now this applet is easier to use:

[roberto@GEDX0327 busybox-1.1.3]$ busybox timeout
USAGE: timeout <timeout_in_sec> [-s int_signal] "<command line>"

[roberto@GEDX0327 busybox-1.1.3]$ busybox timeout --help
BusyBox v1.1.3 (2006.07.11-08:14+0000) multi-call binary

Usage: timeout <seconds> [-s signal] "<command line>"

Runs the "command line" within a timeout window and returns its status.
Options:
        -s Number of signal to the command and its children when timeout expires

 
(0006264)
vda
04-01-08 02:55

Timeout after process ate N seconds of CPU time: softlimit -t N <cmd> [<args>]

Example:

softlimit -t 5 ash -c 'while true; do true; done'
 
(0013664)
robang74
10-15-08 12:24

timeout is not about cpu time but clock time
 

- Issue History
Date Modified Username Field Change
02-03-06 02:18 robang74 New Issue
02-03-06 02:18 robang74 Status new => assigned
02-03-06 02:18 robang74 Assigned To  => BusyBox
02-03-06 02:18 robang74 File Added: timeout_applet.tgz
02-03-06 02:18 robang74 Issue Monitored: robang74
07-11-06 01:08 robang74 Note Added: 0001515
07-11-06 01:08 robang74 File Added: timeout_applet-0.2.7.tar.bz2
07-11-06 01:15 robang74 Note Edited: 0001515
07-11-06 01:18 robang74 Note Edited: 0001515
04-01-08 02:55 vda Note Added: 0006264
10-15-08 12:24 robang74 Note Added: 0013664


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker