Changeset 31231 in vbox
- Timestamp:
- Jul 30, 2010 7:50:52 AM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r31194 r31231 182 182 case 'h': 183 183 pcszDescr = "Print this help message and exit."; 184 break;184 break; 185 185 186 186 #if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined (RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) 187 187 case 'b': 188 188 pcszDescr = "Run in background (daemon mode)."; 189 break;189 break; 190 190 #endif 191 191 192 192 case 'H': 193 193 pcszDescr = "The host to bind to (localhost)."; 194 break;194 break; 195 195 196 196 case 'p': 197 197 pcszDescr = "The port to bind to (18083)."; 198 break;198 break; 199 199 200 200 case 't': 201 201 pcszDescr = "Session timeout in seconds; 0 = disable timeouts (" DEFAULT_TIMEOUT_SECS_STRING ")."; 202 break;202 break; 203 203 204 204 case 'T': 205 205 pcszDescr = "Maximum number of worker threads to run in parallel (100)."; 206 break; 206 break; 207 208 case 'k': 209 pcszDescr = "Maximum number of requests before a socket will be closed (100)."; 210 break; 207 211 208 212 case 'i': 209 213 pcszDescr = "Frequency of timeout checks in seconds (5)."; 210 break;214 break; 211 215 212 216 case 'v': 213 217 pcszDescr = "Be verbose."; 214 break;218 break; 215 219 216 220 case 'F': 217 221 pcszDescr = "Name of file to write log to (no file)."; 218 break;222 break; 219 223 } 220 224 … … 637 641 case 'H': 638 642 g_pcszBindToHost = ValueUnion.psz; 639 break;643 break; 640 644 641 645 case 'p': 642 646 g_uBindToPort = ValueUnion.u32; 643 break;647 break; 644 648 645 649 case 't': 646 650 g_iWatchdogTimeoutSecs = ValueUnion.u32; 647 break;651 break; 648 652 649 653 case 'i': 650 654 g_iWatchdogCheckInterval = ValueUnion.u32; 651 break;655 break; 652 656 653 657 case 'F': … … 662 666 WebLog("Sun VirtualBox Webservice Version %s\n" 663 667 "Opened log file \"%s\"\n", VBOX_VERSION_STRING, ValueUnion.psz); 668 break; 664 669 } 665 break;666 670 667 671 case 'T': 668 672 g_cMaxWorkerThreads = ValueUnion.u32; 669 break;673 break; 670 674 671 675 case 'k': 672 676 g_cMaxKeepAlive = ValueUnion.u32; 673 break;677 break; 674 678 675 679 case 'h': 676 680 DisplayHelp(); 677 return 0;681 return 0; 678 682 679 683 case 'v': 680 684 g_fVerbose = true; 681 break;685 break; 682 686 683 687 #if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined (RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) 684 688 case 'b': 685 689 g_fDaemonize = true; 686 break;690 break; 687 691 #endif 688 692 case 'V': 689 693 RTPrintf("%sr%s\n", RTBldCfgVersion(), RTBldCfgRevisionStr()); 690 return 0;694 return 0; 691 695 692 696 default: 693 697 rc = RTGetOptPrintError(c, &ValueUnion); 694 return rc;698 return rc; 695 699 } 696 700 } … … 1535 1539 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 1536 1540 1537 do { 1541 do 1542 { 1538 1543 // findRefFromId require the lock 1539 1544 util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS); … … 1569 1574 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 1570 1575 1571 do { 1576 do 1577 { 1572 1578 // findRefFromId and the delete call below require the lock 1573 1579 util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS); … … 1581 1587 1582 1588 WEBDEBUG((" found reference; deleting!\n")); 1589 // this removes the object from all stacks; since 1590 // there's a ComPtr<> hidden inside the reference, 1591 // this should also invoke Release() on the COM 1592 // object 1583 1593 delete pRef; 1584 // this removes the object from all stacks; since1585 // there's a ComPtr<> hidden inside the reference,1586 // this should also invoke Release() on the COM1587 // object1588 1594 } while (0); 1589 1595 … … 1639 1645 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 1640 1646 1641 do { 1647 do 1648 { 1642 1649 // WebServiceSession constructor tinkers with global MOR map and requires a write lock 1643 1650 util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS); … … 1684 1691 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 1685 1692 1686 do { 1693 do 1694 { 1687 1695 // findSessionFromRef needs lock 1688 1696 util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS); … … 1716 1724 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 1717 1725 1718 do { 1726 do 1727 { 1719 1728 // findSessionFromRef and the session destructor require the lock 1720 1729 util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS); -
trunk/src/VBox/Runtime/testcase/tstRTStrAlloc.cpp
r28800 r31231 43 43 RTTestISub("Basics"); 44 44 char *psz; 45 int rc ;45 int rc = VINF_SUCCESS; 46 46 47 47 /* RTStrAlloc */
Note:
See TracChangeset
for help on using the changeset viewer.