vkernel - enhance the pidfile option and fix memimg file scanning
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Jul 2011 23:05:42 +0000 (16:05 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Jul 2011 23:05:42 +0000 (16:05 -0700)
commitbc3cc25e9d9f4d967ae2ae3a552e42af0dd32ea1
tree04c758ee1e4254dd47bbfdece2cf1b01226bc838
parent317e42eab2ae9bd59e783f0ae202e7b829bea982
vkernel - enhance the pidfile option and fix memimg file scanning

* Enhance the pidfile option to leave the file descriptor open and hold
  an active lock on the pidfile while the vkernel is running.

  This allows scripts to test whether the pidfile is real or stale.

* When scanning for memimg files only stop if we are unable to create
  a new file.  Skip files owned by other users instead of giving up.

* Adjust the vkernel manual page to document the pidfile feature.  Also
  document that -I can take a vknetd socket path.
share/man/man7/vkernel.7
sys/platform/vkernel/platform/init.c
sys/platform/vkernel64/platform/init.c