aboutsummaryrefslogtreecommitdiff
path: root/miscutils/watchdog.c
Commit message (Collapse)AuthorAgeFilesLines
* *: make GNU licensing statement forms more regularGravatar Denys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichGravatar Denys Vlasenko2009-09-061-1/+1
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* we need to daemonize *before* opening the watchdog deviceGravatar Mike Frysinger2009-04-251-4/+9
|
* watchdog: enable it before setting timeoutGravatar Denis Vlasenko2009-04-201-2/+9
| | | | | | | function old new delta watchdog_main 239 259 +20 static.enable - 4 +4
* watchdog: build fixes, no code changesGravatar Denis Vlasenko2008-12-141-2/+7
|
* watchdog: WDIOC_SETTIMEOUT accepts seconds, not millisecondsGravatar Denis Vlasenko2008-10-041-0/+2
| | | | | klogd: handle many lines at once, by Steve Bennett (steveb AT workware.net.au)
* - update my name. No obj-code changes ;)Gravatar Bernhard Reutner-Fischer2008-09-251-1/+1
|
* watchdog: add -T optionGravatar Denis Vlasenko2008-09-071-26/+33
| | | | | | | | function old new delta watchdog_main 159 219 +60 mdev: support match by major,minor. See bug 4714. +100 bytes.
* *: rename ATTRIBUTE_XXX to just XXX.Gravatar Denis Vlasenko2008-07-051-1/+1
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesGravatar Bernhard Reutner-Fischer2008-05-191-1/+1
|
* *: s/BB_SIGS_FATAL/BB_FATAL_SIGS/ (latter proved easier to remember)Gravatar Denis Vlasenko2008-03-191-1/+1
| | | | | top: fix "top </dev/null" case (by Cristian Ionescu-Idbohrn)
* *: fix various kinds of damage to letter 'c' in Arkadiusz Mickiewicz' surname.Gravatar Denis Vlasenko2008-03-171-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chrt,taskset,dc,eject: shrink crontab: call "vi" with just name, no path watchdog: intercept all fatal signals function old new delta xstrtoull_range - 35 +35 static.sg_commands - 18 +18 packed_usage 23698 23712 +14 watchdog_main 148 151 +3 crontab_main 637 638 +1 base 1 - -1 static.ps 4 - -4 pointer 4 - -4 stack_machine 99 92 -7 run_command 273 260 -13 eject_main 360 343 -17 static.C 30 12 -18 ptok 61 38 -23 xstrtol_range 27 - -27 get_token 35 - -35 taskset_main 586 550 -36 chrt_main 411 372 -39 dc_main 158 117 -41 time_main 1127 1037 -90 ------------------------------------------------------------------------------ (add/remove: 2/5 grow/shrink: 3/9 up/down: 71/-355) Total: -284 bytes text data bss dec hex filename 793680 662 7420 801762 c3be2 busybox_old 793327 662 7412 801401 c3a79 busybox_unstripped
* libbb: introduce bb_signals and bb_signals_recursive,Gravatar Denis Vlasenko2008-02-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | which sets same handler for many signals. sig_catch is nuked (bb_signals_recursive is more descriptive name). *: use them as appropriate. function old new delta bb_signals_recursive - 95 +95 bb_signals - 52 +52 run_command 258 273 +15 svlogd_main 1368 1377 +9 runsv_main 1746 1752 +6 runsvdir_main 1643 1646 +3 UNSPEC_print 64 66 +2 time_main 1128 1127 -1 ... resize_main 246 210 -36 sig_catch 63 - -63 set_fatal_sighandler 85 14 -71 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548) Total: -366 bytes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsGravatar Denis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* watchdog: allow millisecond spec (-t 250ms)Gravatar Denis Vlasenko2007-09-051-9/+15
| | | | | | | | | | | | function old new delta packed_usage 23069 23113 +44 static.suffixes - 24 +24 watchdog_main 147 160 +13 static.V - 1 +1 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 82/0) Total: 82 bytes
* don't pass argc in getopt32, it's superfluousGravatar Denis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* move everything to new NOMMU helpers, except udhcpGravatar Denis Vlasenko2007-03-261-12/+3
|
* NOMMU re-exec trick shuld not depend on existence of "don't daemonize"Gravatar Denis Vlasenko2007-03-241-3/+5
| | | | | option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too.
* watchdog: don't use static variableGravatar Denis Vlasenko2007-03-141-9/+9
|
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* attempt to regularize atoi mess.Gravatar Denis Vlasenko2006-10-081-2/+2
|
* getopt_ulflags -> getopt32.Gravatar Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateGravatar Rob Landley2006-08-031-7/+2
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* fix watchdog on no-mmu systems by adding -F option for rexecGravatar Mike Frysinger2006-06-261-2/+9
|
* initial support for no-mmu systemsGravatar Mike Frysinger2006-06-071-0/+4
|
* hint at where the Magic comes fromGravatar Mike Frysinger2006-06-071-1/+1
|
* - no need to have timer_duration in the data section.Gravatar Bernhard Reutner-Fischer2006-06-031-7/+4
| | | | - cleanup a little bit while at it.
* - move #include busybox.h to the very top so we pull in the configGravatar Bernhard Reutner-Fischer2006-06-031-1/+1
| | | | and eventual platform specific includes in early.
* - patch from Denis Vlasenko to add and use bb_xdaemon()Gravatar Bernhard Reutner-Fischer2006-04-121-2/+1
|
* - add some ATTRIBUTE_UNUSED.Gravatar Bernhard Reutner-Fischer2006-01-301-1/+1
| | | | - use shorter boilerplate while at it.
* just whitespaceGravatar Tim Riker2006-01-251-1/+1
|
* Rob Sullivan sent in some cleanups, which I beat on slightly.Gravatar Rob Landley2005-10-281-26/+8
|
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-1/+1
|
* Paul Mundt <lethal@linux-sh.org> writes:Gravatar Eric Andersen2003-07-221-11/+43
| | | | | | | | | | | | | | | | | Here's a bunch of fixes for the watchdog app in busybox. This does a couple of things: - configurable timer duration (userspace timer duration is usually configurable within the device drivers themselves). - run as a daemon - shutdown the device properly on SIGINT or SIGHUP - clear the counter immediately instead of sleeping first as well as updating the usage information. This has also been switched over to getopt to deal with the optional timer duration specifier. The changes themselves are harmless and isolated, and I've veried that this works on sh and x86 without any problems.
* Major coreutils update.Gravatar Manuel Novoa III2003-03-191-2/+2
|
* Patch from Jeff Garzik marking a few 'getopt not needed' apps.Gravatar Eric Andersen2001-03-091-0/+2
|
* It turns out that DODMALLOC was broken when I reorganized busybox.hGravatar Eric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workGravatar Eric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Fix header file usage -- there were many unnecessary header files included inGravatar Eric Andersen2001-01-271-0/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Add in spoon's watchdog timer app.Gravatar Eric Andersen2001-01-251-0/+45
-Erik