Rob Landley
|
73f5ecd772
Create the timer after installing the SIGALRM handler.
|
2 years ago |
Elliott Hughes
|
81859b8a57
timeout: use the monotonic clock.
|
2 years ago |
Rob Landley
|
664c417af5
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.
|
3 years ago |
Rob Landley
|
03b79265b5
Get exit code right when command intercepts signal, make timeout use
|
4 years ago |
Elliott Hughes
|
38509d0e21
timeout: fix exit status for sneaky subprocesses.
|
4 years ago |
Elliott Hughes
|
3526680910
timeout: remove bogus depends-on.
|
5 years ago |
Rob Landley
|
677cd8cea2
Add TOYFLAG_ARGFAIL() to allow argument parsing failures to exit with value.
|
5 years ago |
Elliott Hughes
|
502b10c2ab
timeout: --foreground, --preserve-status, and --signal.
|
5 years ago |
Rob Landley
|
b8070a7425
OpenEmbedded needs commands installed in specific places.
|
5 years ago |
Rob Landley
|
6a73e13d75
Convert more option vars to the new (single letter) coding style.
|
5 years ago |
Rob Landley
|
07a3b91920
Add % to lib/args.c (long time in milliseconds), add xmillitime(), redo
|
5 years ago |
Rob Landley
|
2b789c342a
Fix build break on x32 target.
|
5 years ago |
Elliott Hughes
|
eb7e847adc
Be more consistent about periods in help text.
|
7 years ago |
Rob Landley
|
f59f11f8e3
Izabera reporeted that FLAG_v was never checked in timeout. (Oops.)
|
8 years ago |
Rob Landley
|
7d6af77804
Make defconfig build for nommu.
|
8 years ago |
Rob Landley
|
847bcb63b5
Add xvfork() as a static inline and use it from various places.
|
8 years ago |
Rob Landley
|
c776bde13b
Use xsignal() instead of signal().
|
9 years ago |
Rob Landley
|
8a3c0edadb
Fix thinko (don't &toybuf to get scratch space) and add -v option.
|
9 years ago |
Rob Landley
|
c0045207a7
Make toy_exec() check if argc is in optargs and deal with it there so we don't need a separate xexec_optargs().
|
9 years ago |
Rob Landley
|
d8872c43b4
Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.
|
10 years ago |
Rob Landley
|
7275667027
Add timeout, factoring out common code from sleep.
|
11 years ago |