Jeff Hobbs wrote:
> David Gravereaux wrote:
>
>>Frederic RISS wrote:
>>
>>>On Fri, 2005-08-19 at 03:46 -0400, Dave Fisher wrote:
>>>
>>>
>>>>Second, the system call does NOT put the output on the connected pipes
>>>>(stdin/stdout/stderr) of a spawned process because it creates another
>>>>process - this is why you are timing out on them.
>>
>>
>>Oh, subprocess of the spawned app, yes..
>>
>>I thought that got fixed? I remember that bug.
>>
>>Jeff, did that get fixed?
>
>
> This is still an issue in the current codebase.
That's coming from the main loop in the ConsoleDebugger class. I don't
have the code in front of me, but I remember it. The switch after
WaitForDebugEvent() for the EXIT_PROCESS_DEBUG_EVENT case needs to have
an else clause added:
if (<lastProcess>) {
<same as before>
} else {
goto again;
}
For debug events returning EXIT_PROCESS_DEBUG_EVENT, they can't call
fall through to ContinueDebugEvent() or it causes an exception in the
child of the spawned app's thread, thereby causing the spawned app to
crash, thus close.
_______________________________________________
Expect mailing list
Expect@list...
http://listserv.ActiveState.com/mailman/listinfo/expect
opensubscriber is not affiliated with the authors of this message nor responsible for its content.