git-WAIT
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
Committed for 2.33

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.

commit dba88fb3ed3e70d2ad797f447a2a894b0891a5d7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Nov 23 00:25:26 2020 +0000

    hurd S_msg_report_wait: Fix detecting fd ports

    _hurd_init_dtable stays set to non-NULL, so we have to run through both
    _hurd_init_dtable and _hurd_dtable.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-WAIT.diff

hurd/report-wait.c

index 487a5fb05a0a419e8721674555e6689fb242456b..eba43c97a6cb8bf4d99c92ba890c81abd3f80774 100644 (file)
@@ -77,7 +77,7 @@ describe_port (string_t description, mach_port_t port)
        if (port == _hurd_init_dtable[i])
          return describe_number (description, "fd#", i);
     }
-  else if (_hurd_dtable)
+  if (_hurd_dtable)
     {
       for (i = 0; i < _hurd_dtablesize; ++i)
        if (_hurd_dtable[i] == NULL)
@@ -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;