diff options
author | Oliver Braun <obr@openoffice.org> | 2001-06-26 14:07:29 +0000 |
---|---|---|
committer | Oliver Braun <obr@openoffice.org> | 2001-06-26 14:07:29 +0000 |
commit | 683b3cde5b06b1b62c0793946cadee890f20e100 (patch) | |
tree | bb600681981076e6e178120c566fd7bd13a871a6 | |
parent | e17d47083246216eb2363181388ddadbdaf93f0a (diff) |
#88295# do not wait until started process ends
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index 357f2720da84..e2f1cfb66bbf 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shellexec.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: obr $ $Date: 2001-06-20 13:55:05 $ + * last change: $Author: obr $ $Date: 2001-06-26 15:07:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -320,15 +320,17 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar { OString aTmp = OUStringToOString( aParameter, osl_getThreadTextEncoding() ); - OStringBuffer aBuffer( aCommandLine.getLength() + aTmp.getLength() + 1 ); + OStringBuffer aBuffer( aCommandLine.getLength() + aTmp.getLength() + 3 ); aBuffer.append( aCommandLine ); aBuffer.append( ' ' ); - aBuffer.append( aTmp ); aCommandLine = aBuffer.makeStringAndClear(); } + // do not wait for completion + aCommandLine += " &"; + if( 0 != system( aCommandLine.getStr() ) ) { int nerr = errno; |