[glibc] hurd S_msg_report_wait: Fix reporting ports

Samuel Thibault sthibaul@sourceware.org
Mon Nov 23 00:35:04 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c57fe5462ba5eb7331a223bbb7abd8ae273747c1

commit c57fe5462ba5eb7331a223bbb7abd8ae273747c1
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Nov 23 00:24:03 2020 +0000

    hurd S_msg_report_wait: Fix reporting ports
    
    This fixes the parameter order of MSG_EXAMINE, thus fixing the detection
    of e.g. fd ports for nicer output in ps WAIT output.

Diff:
---
 hurd/report-wait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hurd/report-wait.c b/hurd/report-wait.c
index 487a5fb05a..752d0cc1c4 100644
--- a/hurd/report-wait.c
+++ b/hurd/report-wait.c
@@ -152,7 +152,7 @@ _S_msg_report_wait (mach_port_t msgport, thread_t thread,
 	      /* Blocked in a system call.  */
 	      if (*msgid == -25
 		  /* mach_msg system call.  Examine its parameters.  */
-		  && MSG_EXAMINE (&state, msgid, &send_port, &rcv_port,
+		  && MSG_EXAMINE (&state, msgid, &rcv_port, &send_port,
 				  &option, &timeout) == 0)
 		{
 		  char *p;


More information about the Glibc-cvs mailing list