summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_private.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-25 03:01:54 +0000
committerbde <bde@FreeBSD.org>1999-08-25 03:01:54 +0000
commit1e9a248e2615a5810fdc8b923877aa7d11dc64d6 (patch)
treedec166835506267beb2ceffcb0c5115eed073500 /lib/libkvm/kvm_private.h
parentd8d1d7a6fa78140fcc075d9bef1ad8921d83c2fa (diff)
downloadFreeBSD-src-1e9a248e2615a5810fdc8b923877aa7d11dc64d6.zip
FreeBSD-src-1e9a248e2615a5810fdc8b923877aa7d11dc64d6.tar.gz
Don't open the swap file. The open descriptor for it hasn't been used
for over 5 years since we switched to using procfs for kvm_uread(). This cleanup was motivated by recent breakage of the default swap file (/dev/drum) when swapon() has not been called.
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r--lib/libkvm/kvm_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h
index 92ab146..2d6d07f 100644
--- a/lib/libkvm/kvm_private.h
+++ b/lib/libkvm/kvm_private.h
@@ -50,7 +50,7 @@ struct __kvm {
#define ISALIVE(kd) ((kd)->vmfd >= 0)
int pmfd; /* physical memory file (or crashdump) */
int vmfd; /* virtual memory file (-1 if crashdump) */
- int swfd; /* swap file (e.g., /dev/drum) */
+ int unused; /* was: swap file (e.g., /dev/drum) */
int nlfd; /* namelist file (e.g., /kernel) */
struct kinfo_proc *procbase;
char *argspc; /* (dynamic) storage for argv strings */
OpenPOWER on IntegriCloud