[wpkg-users] [Bug 222] Terminate timed out processes

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Sat Jul 9 03:44:29 CEST 2011


http://bugzilla.wpkg.org/show_bug.cgi?id=222

--- Comment #1 from Stefan Pendl <pendl2megabit at yahoo.de>  ---
Code proposal for 1):

            if (count >= timeout) {
                return -1;
            }
        }

        return shellExec.exitCode;
    } catch (e) {
        // handle execution exception
        var message = "Command '" + shell.ExpandEnvironmentStrings(cmd) + "\"
was unsuccessful.\n" + e.description;
        if(isQuitOnError()) {
            throw new Error(message);
        } else {
            error(message);
            return -1;
        }
    } finally {
        if (shellExec.status == 0) {
            shellExec.Terminate;
        }
    }

---
Stefan

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list