Changeset 3388 in vbox for trunk/src/VBox/Main/linux/server_module.cpp
- Timestamp:
- Jul 3, 2007 11:42:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/linux/server_module.cpp
r2981 r3388 20 20 */ 21 21 22 #ifdef __OS2__ 23 # include <prproces.h> 24 #endif 25 22 26 #include <nsMemory.h> 23 27 #include <nsString.h> … … 165 169 startedOnce = true; 166 170 171 #ifdef __OS2__ 172 char *const args[] = { VBoxSVCPath, "--automate", 0 }; 173 /* use NSPR because we want the process to be detached right 174 * at startup (it isn't possible to detach it later on) */ 175 PRStatus rv = PR_CreateProcessDetached (VBoxSVCPath, 176 args, NULL, 0); 177 if (rv != PR_SUCCESS) 178 { 179 rc = NS_ERROR_FAILURE; 180 break; 181 } 182 #else 183 const char *args[] = { VBoxSVCPath, "--automate", 0 }; 167 184 RTPROCESS pid = NIL_RTPROCESS; 168 const char *args[] = { VBoxSVCPath, "--automate", 0 };169 185 vrc = RTProcCreate (VBoxSVCPath, args, NULL, 0, &pid); 170 186 if (VBOX_FAILURE (vrc)) … … 173 189 break; 174 190 } 191 #endif 175 192 176 193 /* wait for the server process to establish a connection */
Note:
See TracChangeset
for help on using the changeset viewer.