VirtualBox

Changeset 97640 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 21, 2022 6:09:43 PM (2 years ago)
Author:
vboxsync
Message:

Main/ClientWatcher: Use sigabbrev_np() instead of strsignal(), so that the Validation Kit's vsheriff can detect this easier [build fix for glibc < 2.32].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ClientWatcher.cpp

    r97639 r97640  
    213213                                    pid, pid, Status.iStatus, Status.iStatus));
    214214                            break;
    215                         case RTPROCEXITREASON_SIGNAL:
     215                    case RTPROCEXITREASON_SIGNAL:
     216/** @todo Move this into IPRT to e.g. RTProcSigToStr()? */
    216217#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    217                             LogRel(("Reaper: Pid %d (%x) was signalled: (%d / %#x)\n", pid, pid, Status.iStatus, Status.iStatus));
    218 #else /** @todo Move this to IPRT? */
     218                            const char *pszSig = "";
     219#elif defined(RT_OS_DARWIN) /** @todo Move this to IPRT? */
     220                            const char *pszSig = strsignal(Status.iStatus); /* Not quite the same, but better than nothing. */
     221#else /* Linux / UNIX */
    219222# if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 32)
    220223                            const char *pszSig = sigabbrev_np(Status.iStatus);
    221224# else /* glibc < 2.32 */
    222                             const char *pszSig = strsignal(Status.iStatus); /* Not quite the same, but better than nothing. */
     225                            const char *pszSig = strsignal(Status.iStatus); /* Ditto. */
    223226# endif /* __GLIBC_PREREQ */
     227#endif
    224228                            LogRel(("Reaper: Pid %d (%x) was signalled: %s (%d / %#x)\n",
    225229                                    pid, pid, pszSig, Status.iStatus, Status.iStatus));
    226 #endif
    227230                            break;
    228231                    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette