- Timestamp:
- Jul 11, 2013 3:45:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp
r44556 r47102 564 564 { 565 565 #ifdef RT_OS_SOLARIS 566 int templateFd = rtSolarisContractPreFork(); 567 if (templateFd == -1) 568 return VERR_OPEN_FAILED; 566 if (!(fFlags & RTPROC_FLAGS_SAME_CONTRACT)) 567 { 568 int templateFd = rtSolarisContractPreFork(); 569 if (templateFd == -1) 570 return VERR_OPEN_FAILED; 571 } 569 572 #endif /* RT_OS_SOLARIS */ 570 573 pid = fork(); … … 572 575 { 573 576 #ifdef RT_OS_SOLARIS 574 rtSolarisContractPostForkChild(templateFd); 577 if (!(fFlags & RTPROC_FLAGS_SAME_CONTRACT)) 578 rtSolarisContractPostForkChild(templateFd); 575 579 #endif /* RT_OS_SOLARIS */ 576 580 if (!(fFlags & RTPROC_FLAGS_DETACHED)) … … 659 663 } 660 664 #ifdef RT_OS_SOLARIS 661 rtSolarisContractPostForkParent(templateFd, pid); 665 if (!(fFlags & RTPROC_FLAGS_SAME_CONTRACT)) 666 rtSolarisContractPostForkParent(templateFd, pid); 662 667 #endif /* RT_OS_SOLARIS */ 663 668 if (pid > 0)
Note:
See TracChangeset
for help on using the changeset viewer.