diff options
author | Miles Bader <miles@gnu.org> | 1995-11-06 22:54:57 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-11-06 22:54:57 +0000 |
commit | b4782c1cb6dc2ed411a93be69c03ffa714dc4c6e (patch) | |
tree | 736aef7e8c8eeb7013b86819102c78babcf0129c /init/init.c | |
parent | d4f38ad26a10909c0a62ae24dd69e52d0c8bccdb (diff) |
(reboot_system):
Add flags, noise, & noise_len params to proc_getprocinfo.
Deallocate NOISE if necessary.
(S_msg_report_wait): New function.
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c index 20eb9471..4f15e4ce 100644 --- a/init/init.c +++ b/init/init.c @@ -203,8 +203,10 @@ reboot_system (int flags) { struct procinfo *pi = 0; u_int pisize = 0; - err = proc_getprocinfo (procserver, pp[ind], - (int **)&pi, &pisize); + char *noise; + unsigned noise_len; + err = proc_getprocinfo (procserver, pp[ind], 0, + (int **)&pi, &pisize, &noise,&noise_len); if (err == MACH_SEND_INVALID_DEST) goto procbad; if (err) @@ -220,6 +222,9 @@ reboot_system (int flags) fflush (stdout); task_terminate (task); } + if (noise_len > 0) + vm_deallocate (mach_task_self (), + (vm_address_t)noise, noise_len); } } printf ("Killing proc server\n"); @@ -1174,3 +1179,12 @@ kern_return_t S_msg_clear_some_exec_flags (mach_port_t process, mach_port_t refport, int flags) { return _S_msg_clear_some_exec_flags (process, refport, flags); } + +error_t +S_msg_report_wait (mach_port_t process, thread_t thread, + string_t desc, int *rpc) +{ + *desc = 0; + *rpc = 0; + return 0; +} |