Skip to content

Commit 19913ca

Browse files
fix hanging help
1 parent fc7c318 commit 19913ca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/programs/help.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ export default {
133133
if (includes_builtin) {
134134
new_args.push("-a");
135135
}
136-
137-
return await kernel.spawn("help", new_args, shell).completion;
136+
137+
// TODO: dont spawn, just change the logic
138+
const shell_result = kernel.spawn("help", new_args, shell);
139+
const exit_code = await shell_result.completion;
140+
shell_result.process.kill(exit_code);
141+
return exit_code;
138142
}
139143

140144

0 commit comments

Comments
 (0)