diff options
-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!"); } { |