This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 14724
Collapse All | Expand All

(-)NbProcessDescriptor.java (-10 / +33 lines)
Line 157 Link Here
157
        Process process;
158
        int origPriority;
159
        Thread current = Thread.currentThread();
160
        
Line 207 Link Here
211
        /* for WIN 98 it is nessesary to change priority to NORM_PRIORITY when starting external proces and then swith it back 
212
           see bug 4086045
213
         */
214
        origPriority = current.getPriority();   
215
        current.setPriority(Thread.NORM_PRIORITY);
Line 209 Link Here
209
                return Runtime.getRuntime ().exec (call);
218
                try {
210
--
219
                    process = Runtime.getRuntime ().exec (call);
220
                }
221
                catch(IOException ioEx){
222
                    current.setPriority(origPriority);  //return priority to original
223
                    throw ioEx; 
224
                }                
225
                return process;
Line 211 Link Here
211
                return Runtime.getRuntime ().exec (call, envp);
227
                try {                
212
--
228
                    process = Runtime.getRuntime ().exec (call, envp);
229
                }
230
                catch(IOException ioEx){
231
                    current.setPriority(origPriority);  //return priority to original
232
                    throw ioEx; 
233
                }                
234
                return process;
Line 217 Link Here
217
                return (Process) m.invoke (Runtime.getRuntime (), new Object[] { call, envp, cwd });
240
                process = (Process) m.invoke (Runtime.getRuntime (), new Object[] { call, envp, cwd });
218
--
241
                current.setPriority(origPriority);  //return priority to original
242
                return process;
Line 219 Link Here
219
                    throw new IOException (NbBundle.getBundle (NbProcessDescriptor.class).getString ("EXC_no_JDK13_exec"));
244
                current.setPriority(origPriority);
220
--
245
                throw new IOException (NbBundle.getBundle (NbProcessDescriptor.class).getString ("EXC_no_JDK13_exec"));
Line 221 Link Here
247
                current.setPriority(origPriority);  //return priority to original
Line 230 Link Here
230
            } catch (Exception e) {
257
            } catch (Exception e) {                
231
--
258
                current.setPriority(origPriority);  //return priority to original

Return to bug 14724