Changeset 33044 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd/client
- Timestamp:
- Oct 11, 2010 4:30:54 PM (14 years ago)
- File:
-
- 1 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().
Note:
See TracChangeset
for help on using the changeset viewer.