diff options
author | Roland McGrath <roland@gnu.org> | 1995-11-03 22:42:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-11-03 22:42:06 +0000 |
commit | 853f0eead1fcab44fa3339a6b171da9bfc7840d8 (patch) | |
tree | 4eba519918a082101309096548ce0a13bdc4b8a5 /hurd/hurdprio.c | |
parent | 27cc33c3b483ce4f73cbd3671ba1fd872b473c4d (diff) | |
download | glibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.tar glibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.tar.gz glibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.tar.bz2 glibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.zip |
Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>cvs/libc-951105cvs/libc-951104
* sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
socket_create_address.
* sysdeps/mach/hurd/connect.c: Likewise.
* sysdeps/mach/hurd/bind.c: Likewise.
* hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
args to proc_getprocinfo.
* sysdeps/mach/hurd/getpriority.c: Likewise.
* hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
Diffstat (limited to 'hurd/hurdprio.c')
-rw-r--r-- | hurd/hurdprio.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hurd/hurdprio.c b/hurd/hurdprio.c index 9360738988..9c9ed2ba7e 100644 --- a/hurd/hurdprio.c +++ b/hurd/hurdprio.c @@ -59,10 +59,16 @@ _hurd_priority_which_map (enum __priority_which which, int who, /* Get procinfo to check the owner. */ int *oldpi = pi; mach_msg_type_number_t oldpisize = pisize; + char *tw = 0; + size_t twsz = 0; if (err = __USEPORT (PROC, __proc_getprocinfo (port, pids[i], pi_flags, - &pi, &pisize))) + &pi, &pisize, + &tw, &twsz))) continue; + if (twsz) + /* Gratuitous. */ + __vm_deallocate (__mach_task_self (), tw, twsz); if (pi != oldpi && oldpi != pibuf) /* Old buffer from last call was not reused; free it. */ __vm_deallocate (__mach_task_self (), |