Changeset 33044 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd
- Timestamp:
- Oct 11, 2010 4:30:54 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 66568
- Location:
- trunk/src/libs/xpcom18a4/ipc/ipcd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp
r30514 r33044 1216 1216 PRProcessAttr *attr = nsnull; 1217 1217 nsresult rv = NS_ERROR_FAILURE; 1218 PRFileDesc *devNull; 1218 1219 char *const argv[] = { (char *const) path, nsnull }; 1219 1220 char c; … … 1233 1234 1234 1235 if (PR_ProcessAttrSetInheritableFD(attr, writable, IPC_STARTUP_PIPE_NAME) != PR_SUCCESS) 1236 goto end; 1237 1238 devNull = PR_Open("/dev/null", PR_RDWR, 0); 1239 if (!devNull) 1235 1240 goto end; 1241 1242 PR_ProcessAttrSetStdioRedirect(attr, PR_StandardInput, devNull); 1243 PR_ProcessAttrSetStdioRedirect(attr, PR_StandardOutput, devNull); 1244 PR_ProcessAttrSetStdioRedirect(attr, PR_StandardError, devNull); 1236 1245 1237 1246 if (PR_CreateProcessDetached(path, argv, nsnull, attr) != PR_SUCCESS) 1238 1247 goto end; 1239 1248 1249 // Close /dev/null 1250 PR_Close(devNull); 1240 1251 // close the child end of the pipe in order to get notification on unexpected 1241 1252 // child termination instead of being infinitely blocked in PR_Read(). -
trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp
r20282 r33044 50 50 #endif 51 51 52 #ifdef VBOX 53 # include <iprt/initterm.h> 54 #endif 55 52 56 #include "prio.h" 53 57 #include "prerror.h" … … 467 471 PRFileDesc *listenFD = NULL; 468 472 PRNetAddr addr; 473 474 #ifdef VBOX 475 /* Set up the runtime without loading the support driver. */ 476 RTR3Init(); 477 #endif 469 478 470 479 // … … 537 546 } 538 547 else { 548 #ifndef VBOX 539 549 // redirect all standard file descriptors to /dev/null for 540 550 // proper daemonizing … … 545 555 PR_Close(PR_STDERR); 546 556 PR_Open("/dev/null", O_WRONLY, 0); 557 #endif 547 558 548 559 IPC_NotifyParent();
Note:
See TracChangeset
for help on using the changeset viewer.