savecore,crashinfo - fix several problems
authorAlex Hornung <ahornung@gmail.com>
Sat, 11 Sep 2010 12:25:34 +0000 (13:25 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 11 Sep 2010 12:28:04 +0000 (13:28 +0100)
commitb58087dc08122e10b42ab5b5d270be39e036054b
tree0f876fdfcb62695dbfd138e2e8b0d74648bca0c7
parent30d7cee3ae83856e62a65efefe1fa0ff7fb7e5df
savecore,crashinfo - fix several problems

* Fix the savecore rc.d script to only run savecore (and crashinfo) when
  there's actually a core dump available.

* Limit the kgdb CPU time to 15 seconds to avoid looping forever if we
  have a somewhat broken vmcore.
etc/rc.d/savecore
usr.sbin/crashinfo/crashinfo.sh