Skip to content

Commit 4ea9656

Browse files
wan9chicodex
andcommitted
test(fspy): finalize x86 gvisor probe
Co-authored-by: GPT-5.6 Codex <codex@openai.com>
1 parent 495ecaf commit 4ea9656

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

research/ptrace-environment-probe.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ static void test_orphan(bool subreaper) {
365365
if (ok && (error = interrupt_and_detach(target)) != 0) ok = false;
366366
report(subreaper ? "seize-orphan-subreaper" : "seize-orphan-no-subreaper",
367367
ok, error, subreaper ? "reparented to supervisor" : "reparented away");
368-
kill(target, SIGKILL);
369-
waitpid(target, NULL, 0);
368+
kill_and_reap(target);
370369
prctl(PR_SET_CHILD_SUBREAPER, 0, 0, 0, 0);
371370
}
372371

0 commit comments

Comments
 (0)