Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/miscutils/timeout.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/miscutils/timeout.c
r2725 r3232 28 28 * rewrite 14-11-2008 vda 29 29 */ 30 31 //usage:#define timeout_trivial_usage 32 //usage: "[-t SECS] [-s SIG] PROG ARGS" 33 //usage:#define timeout_full_usage "\n\n" 34 //usage: "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n" 35 //usage: "Defaults: SECS: 10, SIG: TERM." 30 36 31 37 #include "libbb.h" … … 84 90 /* Here we are grandchild. Sleep, then kill grandparent */ 85 91 grandchild: 86 /* Just sleep( NUGE_NUM); kill(parent) may kill wrong process! */92 /* Just sleep(HUGE_NUM); kill(parent) may kill wrong process! */ 87 93 while (1) { 88 94 sleep(1);
Note:
See TracChangeset
for help on using the changeset viewer.