diff options
author | Roland McGrath <roland@gnu.org> | 1999-11-19 00:00:16 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-11-19 00:00:16 +0000 |
commit | af52fc1d8ff016eb7dce3d9268869b23da90c9ce (patch) | |
tree | 542b85ec1f46411908a4f1512b9e907781b74e77 /sutils/swapon.c | |
parent | 8eb931b8008c22378c0a7d9c01638a0d8b68505f (diff) |
1999-11-16 Roland McGrath <roland@baalperazim.frob.com>
* swapon.c (swaponoff): Check for a null default pager port.
Diffstat (limited to 'sutils/swapon.c')
-rw-r--r-- | sutils/swapon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sutils/swapon.c b/sutils/swapon.c index d6580bef..fb264bc6 100644 --- a/sutils/swapon.c +++ b/sutils/swapon.c @@ -87,6 +87,8 @@ swaponoff (const char *file, int add) mach_port_deallocate (mach_task_self (), host); if (err) error (13, err, "Cannot get default pager port"); + if (def_pager == MACH_PORT_NULL) + error (14, 0, "No default pager (memory manager) is running!"); } { |