dmesg - Add -f option for continuous monitoring
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Oct 2013 17:15:56 +0000 (10:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Oct 2013 17:19:06 +0000 (10:19 -0700)
commitd08d23b244f63293251b82ca56cbd051ff44b276
tree84657c22476ff3346ba839baaa9d1c09e572a4b7
parent23a1ca0db9719221e7ff48702e240febc1531bcd
dmesg - Add -f option for continuous monitoring

* Add the -f option to dmesg.  After the initial message buffer dump
  dmesg monitors the kernel for additional data and displays it as it
  arrives.  dmesg will not terminate until killed in this mode.

* The sysctl() is deficient so libkvm is forced when this option is
  specified.
sbin/dmesg/dmesg.8
sbin/dmesg/dmesg.c