shelljob.cxx (07a3d7f1) | shelljob.cxx (7a164331) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 170 unchanged lines hidden (view full) --- 179 oslProcessOption nOptions = osl_Process_WAIT; 180 oslProcess hProcess(0); 181 182 if (nArgs > 0) 183 pArgs = reinterpret_cast< ::rtl_uString** >(const_cast< ::rtl::OUString* >(lArguments.getConstArray())); 184 185 oslProcessError eError = osl_executeProcess(sCommand.pData, pArgs, nArgs, nOptions, NULL, NULL, NULL, 0, &hProcess); 186 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 170 unchanged lines hidden (view full) --- 179 oslProcessOption nOptions = osl_Process_WAIT; 180 oslProcess hProcess(0); 181 182 if (nArgs > 0) 183 pArgs = reinterpret_cast< ::rtl_uString** >(const_cast< ::rtl::OUString* >(lArguments.getConstArray())); 184 185 oslProcessError eError = osl_executeProcess(sCommand.pData, pArgs, nArgs, nOptions, NULL, NULL, NULL, 0, &hProcess); 186 |
187 // executable not found or couldnt be started | 187 // executable not found or couldn't be started |
188 if (eError != osl_Process_E_None) 189 return sal_False; 190 191 ::sal_Bool bRet = sal_True; 192 if (bCheckExitCode) 193 { 194 // check its return codes ... 195 oslProcessInfo aInfo; --- 13 unchanged lines hidden --- | 188 if (eError != osl_Process_E_None) 189 return sal_False; 190 191 ::sal_Bool bRet = sal_True; 192 if (bCheckExitCode) 193 { 194 // check its return codes ... 195 oslProcessInfo aInfo; --- 13 unchanged lines hidden --- |