diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:56:15 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:56:15 +0000 |
commit | 84c05469b0378c17726a054d7486943ef197b423 (patch) | |
tree | 57ac8a2d08bf7510e5468b53c0cc5d8bbc6e9050 /utils/login.c | |
parent | 5798491126bcb231c4fbd5a9675bae036146ad01 (diff) |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* login.c (cat): Use munmap instead of vm_deallocate.
(check_owned): Likewise.
(kill_login): Likewise.
* storeread.c (main): Likewise.
* showtrans.c (main): Likewise.
* pids.c (add_fn_pids): Likewise.
* msgport.c (cmd_getenv): Likewise.
Diffstat (limited to 'utils/login.c')
-rw-r--r-- | utils/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/login.c b/utils/login.c index ddcbadf9..d107a425 100644 --- a/utils/login.c +++ b/utils/login.c @@ -139,7 +139,7 @@ cat (mach_port_t node, char *str) { write (0, data, data_len); if (data != buf) - vm_deallocate (mach_task_self (), (vm_address_t)data, data_len); + munmap (data, data_len); } } if (err) @@ -271,7 +271,7 @@ check_owned (process_t proc_server, pid_t pid, int *owned) { *owned = !(pi->state & PI_NOTOWNED); if (pi != &_pi) - vm_deallocate (mach_task_self (), (vm_address_t)pi, pi_size); + munmap (pi, pi_size); } return err; @@ -296,7 +296,7 @@ kill_login (process_t proc_server, pid_t pid, int sig) if (pids[i] != self) kill (pids[i], sig); if (pids != _pids) - vm_deallocate (mach_task_self (), (vm_address_t)pids, num_pids); + munmap (pids, num_pids); } } while (!err && num_pids > 0); |