summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennes Rohling <hro@openoffice.org>2001-07-20 15:08:14 +0000
committerHennes Rohling <hro@openoffice.org>2001-07-20 15:08:14 +0000
commitfb71ee512321600561f684fca7b256cda26a76a4 (patch)
treec106587561d536e3269110a9f27203df8278dfcd
parente58299cd0994371b0f29f8fb29295256ac94df02 (diff)
#88840# Fixed osl_executeProcess_WithRedirectedIO
-rw-r--r--sal/osl/unx/process.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/sal/osl/unx/process.c b/sal/osl/unx/process.c
index 8adefeed46d6..d8cc09bbe9e4 100644
--- a/sal/osl/unx/process.c
+++ b/sal/osl/unx/process.c
@@ -2,9 +2,9 @@
*
* $RCSfile: process.c,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: hro $ $Date: 2001-07-19 12:13:08 $
+ * last change: $Author: hro $ $Date: 2001-07-20 16:08:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -930,9 +930,14 @@ static void ChildStatusProc(void *pData)
/* Store used pipe ends in data structure */
- *(pdata->m_pInputWrite) = osl_createFileHandleFromFD( stdInput[1] );
- *(pdata->m_pOutputRead) = osl_createFileHandleFromFD( stdOutput[0] );
- *(pdata->m_pErrorRead) = osl_createFileHandleFromFD( stdError[0] );
+ if ( pdata->m_pInputWrite )
+ *(pdata->m_pInputWrite) = osl_createFileHandleFromFD( stdInput[1] );
+
+ if ( pdata->m_pOutputRead )
+ *(pdata->m_pOutputRead) = osl_createFileHandleFromFD( stdOutput[0] );
+
+ if ( pdata->m_pErrorRead )
+ *(pdata->m_pErrorRead) = osl_createFileHandleFromFD( stdError[0] );
osl_releaseMutex(ChildListMutex);