[wpkg-users] [Bug 155] New: stdout/stderr flush code causes some commands to hang

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Sat Apr 18 00:34:20 CEST 2009


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

           Summary: stdout/stderr flush code causes some commands to hang
           Product: WPKG
           Version: 1.1.x-M
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: parasytic at gmail.com
         QAContact: wpkg-users at lists.wpkg.org


wpkg.js revisions earlier than r50 properly fork processes using a command like
the following:

<install cmd='%COMSPEC% /c start "AutoIt3" "%PROGRAMFILES%\AutoIt3\AutoIt3.exe"
"%PROGRAMFILES%\AutoIt3\redemption.au3"' />

Of course, this is helpful for installers that absolutely require some sort of
keyboard/mouse interaction (through the use of AutoIt); wpkg forks a new
process using the 'start' shell command, which exits immediately, leaving the
child process running. Then wpkg may continue executing additional commands
while the AutoIt script does its own thing to move the process along.


The patch in r50 causes the command interpreter to continuously run, thus it
does not return, and is eventually killed by the timeout (maybe). The following
commands which may rely on the forked process could subsequently fail, also.

According to a newsgroup post, AtEndOfStream() waits for the program to exit:
http://groups.google.co.yu/group/microsoft.public.scripting.jscript/browse_thread/thread/ad9b6ffdf0ada6c7


-- 
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