Skip to content

vfp-expected.mjs: timeout uses taskkill /IM vfp9.exe, which also kills the developer's own VFP session #36

Closed

Description

@hemstreet

When a golden hangs, the harness does:

execFileSync('taskkill', ['/IM', 'vfp9.exe', '/F'], { stdio: 'ignore' });

/IM matches every vfp9.exe on the machine — including an interactive VFP IDE the developer has open with unsaved work, or a second measurement running in parallel. Killing by the child's PID tree keeps the blast radius to the run itself:

execFileSync('taskkill', ['/PID', String(child.pid), '/T', '/F'], { stdio: 'ignore' });

(/T takes the process tree, which covers the case where vfp9 spawned anything.)

I ran my sweeps with this change applied: a probe that hung on a modal error dialog was killed cleanly at the timeout while a separate interactive VFP session on the same machine stayed open. PR incoming.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions