VirtualBox

Changeset 97637 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 21, 2022 5:10:56 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

    r97635 r97637  
    215215                        case RTPROCEXITREASON_SIGNAL:
    216216#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    217                             LogRel(("Reaper: Pid %d (%x) was signalled: (%d / %#x)\n",
    218                                     pid, pid, Status.iStatus, Status.iStatus));
    219 #else
     217                            LogRel(("Reaper: Pid %d (%x) was signalled: (%d / %#x)\n", pid, pid, Status.iStatus, Status.iStatus));
     218#else /** @todo Move this to IPRT? */
     219# if __GLIBC_PREREQ(2, 32)
     220                            const char *pszSig = sigabbrev_np(Status.iStatus);
     221# else /* glibc < 2.32 */
     222                            const char *pszSig = sys_sigabbrev[Status.iStatus < RT_ELEMENTS(sys_sigabbrev) ? Status.iStatus : 0];
     223# endif /* __GLIBC_PREREQ */
    220224                            LogRel(("Reaper: Pid %d (%x) was signalled: %s (%d / %#x)\n",
    221                                     pid, pid, sigabbrev_np(Status.iStatus), Status.iStatus, Status.iStatus));
     225                                    pid, pid, pszSig, Status.iStatus, Status.iStatus));
    222226#endif
    223227                            break;
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