VirtualBox

Changeset 23921 in vbox


Ignore:
Timestamp:
Oct 20, 2009 6:11:29 PM (15 years ago)
Author:
vboxsync
Message:

Main: better error message if semget() returns ENOSPC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r23920 r23921  
    77187718        return E_FAIL;
    77197719    }
     7720    /* ENOSPC can also be the result of VBoxSVC crashes without properly freeing
     7721     * the IPC semaphores */
     7722    if (mIPCSem < 0 && errnoSave == ENOSPC)
     7723    {
     7724#ifdef RT_OS_LINUX
     7725        setError(E_FAIL,
     7726                 tr("Cannot create IPC semaphore because the system limit for the "
     7727                    "maximum number of semaphore sets (SEMMNI), or the system wide "
     7728                    "maximum number of sempahores (SEMMNS) would be exceeded. The "
     7729                    "current set of SysV IPC semaphores can be determined from "
     7730                    "the file /proc/sysvipc/sem"));
     7731#else
     7732        setError(E_FAIL,
     7733                 tr("Cannot create IPC semaphore because the system-imposed limit "
     7734                    "on the maximum number of allowed  semaphores or semaphore "
     7735                    "identifiers system-wide would be exceeded"));
     7736#endif
     7737        return E_FAIL;
     7738    }
    77207739    ComAssertMsgRet (mIPCSem >= 0, ("Cannot create IPC semaphore, errno=%d", errnoSave),
    77217740                     E_FAIL);
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